mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
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:
parent
3b8622f1aa
commit
020861c698
6 changed files with 20 additions and 12 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue