mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Netsplit fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@663 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0790ad02f6
commit
e316475afd
@ -355,7 +355,7 @@ static void event_mode(const char *data, IRC_SERVER_REC *server,
|
||||
if (*mode == 'o' && *nick != NULL) {
|
||||
/* give/remove ops */
|
||||
rec = netjoin_find(server, *nick);
|
||||
if (rec != NULL && !netjoin_set_operator(rec, channel, type == '+'))
|
||||
if (rec == NULL || !netjoin_set_operator(rec, channel, type == '+'))
|
||||
show = TRUE;
|
||||
nick++;
|
||||
} else {
|
||||
|
@ -121,6 +121,9 @@ static NETSPLIT_REC *netsplit_add(IRC_SERVER_REC *server, const char *nick, cons
|
||||
rec->channels = g_slist_append(rec->channels, splitchan);
|
||||
}
|
||||
|
||||
if (rec->channels == NULL)
|
||||
g_warning("netsplit_add(): channels == NULL ??");
|
||||
|
||||
g_hash_table_insert(server->splits, rec->nick, rec);
|
||||
|
||||
signal_emit("netsplit add", 1, rec);
|
||||
|
Loading…
Reference in New Issue
Block a user