Netsplit saved the NICK_REC, but didn't save the dynamically allocated strings

which were part of it. Removed it now and replaced it with saving only
op/halfop/voice status. Might have caused some crashes? (hopefully did :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2234 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-12-10 23:32:46 +00:00 committed by cras
commit 020861c698
6 changed files with 20 additions and 12 deletions

View file

@ -130,7 +130,7 @@ static void get_server_splits(void *key, NETSPLIT_REC *split,
chanrec->nick_count++;
if (netsplit_nicks_hide_threshold <= 0 ||
chanrec->nick_count <= netsplit_nicks_hide_threshold) {
if (splitchan->nick.op)
if (splitchan->op)
g_string_append_c(chanrec->nicks, '@');
g_string_sprintfa(chanrec->nicks, "%s ", split->nick);
@ -306,8 +306,8 @@ static void split_print(NETSPLIT_REC *rec)
chan = rec->channels->data;
chanstr = chan == NULL ? "" :
g_strconcat(chan->nick.op ? "@" :
(chan->nick.voice ? "+" : ""), chan->name, NULL);
g_strconcat(chan->op ? "@" :
(chan->voice ? "+" : ""), chan->name, NULL);
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_LINE,
rec->nick, chanstr, rec->server->server,