mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Ignore joins without a nick from broken servers
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4248 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
461f653d9b
commit
71db22a171
@ -309,6 +309,9 @@ static void event_join(IRC_SERVER_REC *server, const char *data,
|
||||
{
|
||||
NETSPLIT_REC *rec;
|
||||
|
||||
if (nick == NULL)
|
||||
return;
|
||||
|
||||
/* check if split is over */
|
||||
rec = g_hash_table_lookup(server->splits, nick);
|
||||
|
||||
@ -331,6 +334,9 @@ static void event_join_last(IRC_SERVER_REC *server, const char *data,
|
||||
{
|
||||
NETSPLIT_REC *rec;
|
||||
|
||||
if (nick == NULL)
|
||||
return;
|
||||
|
||||
rec = g_hash_table_lookup(server->splits, nick);
|
||||
if (rec != NULL) {
|
||||
g_hash_table_remove(server->splits, rec->nick);
|
||||
|
@ -273,6 +273,9 @@ static void notifylist_check_join(IRC_SERVER_REC *server, const char *nick,
|
||||
NOTIFY_NICK_REC *rec;
|
||||
char *user, *host;
|
||||
|
||||
if (nick == NULL)
|
||||
return;
|
||||
|
||||
notify = notifylist_find(nick, server->connrec->chatnet);
|
||||
if (notify == NULL) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user