diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-10 23:32:46 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-10 23:32:46 +0000 |
commit | 020861c698967b156c52473a91b2f61d2e965ee1 (patch) | |
tree | 6d91a40a66b41be6a9a4e6bcf8fb2df6fe4f94dd /src/fe-common | |
parent | 3b8622f1aaa83f082286af6e4efbd648042fcfcb (diff) | |
download | irssi-020861c698967b156c52473a91b2f61d2e965ee1.zip |
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
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/irc/fe-netsplit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/irc/fe-netsplit.c b/src/fe-common/irc/fe-netsplit.c index 300d3e43..821f2ea8 100644 --- a/src/fe-common/irc/fe-netsplit.c +++ b/src/fe-common/irc/fe-netsplit.c @@ -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, |