summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2006-03-01 00:02:48 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2006-03-01 00:02:48 +0000
commit71db22a171e87cf5a1e11e8ad9a08c4b64631f8c (patch)
tree4a30eb82549764a48da49b1606824cda31632f0c
parent461f653d9b34de2d88de7df3547c19dc0954d301 (diff)
downloadirssi-71db22a171e87cf5a1e11e8ad9a08c4b64631f8c.zip
Ignore joins without a nick from broken servers
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4248 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/irc/core/netsplit.c6
-rw-r--r--src/irc/notifylist/notifylist.c3
2 files changed, 9 insertions, 0 deletions
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;