From 71db22a171e87cf5a1e11e8ad9a08c4b64631f8c Mon Sep 17 00:00:00 2001 From: Wouter Coekaerts Date: Wed, 1 Mar 2006 00:02:48 +0000 Subject: Ignore joins without a nick from broken servers git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4248 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/netsplit.c | 6 ++++++ src/irc/notifylist/notifylist.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c index 0e85b44c..9f0ae095 100644 --- a/src/irc/core/netsplit.c +++ b/src/irc/core/netsplit.c @@ -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); diff --git a/src/irc/notifylist/notifylist.c b/src/irc/notifylist/notifylist.c index 0e8155fd..e91ba199 100644 --- a/src/irc/notifylist/notifylist.c +++ b/src/irc/notifylist/notifylist.c @@ -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; -- cgit v1.2.3