1
0
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:
Timo Sirainen 2000-09-19 21:14:35 +00:00 committed by cras
parent 0790ad02f6
commit e316475afd
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -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);