summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-12-07 20:53:50 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-12-07 20:53:50 +0000
commite51f4e96fe1705974039ba623f9d6451d045a472 (patch)
treef75b0adf0c4b2f0fc6dc58392644bd65daecd6db
parent0ab956f64fdc3950c3150143eae868eae3e6a31e (diff)
downloadirssi-e51f4e96fe1705974039ba623f9d6451d045a472.zip
Don't break if nick is twice in names list (never is with non-broken
servers). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3047 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/irc/core/irc-nicklist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c
index 2e100dda..eb3aaeca 100644
--- a/src/irc/core/irc-nicklist.c
+++ b/src/irc/core/irc-nicklist.c
@@ -133,7 +133,10 @@ static void event_names_list(IRC_SERVER_REC *server, const char *data)
ptr++;
}
- irc_nicklist_insert(chanrec, ptr, op, halfop, voice, FALSE);
+ if (nicklist_find((CHANNEL_REC *) chanrec, ptr) == NULL) {
+ irc_nicklist_insert(chanrec, ptr, op, halfop,
+ voice, FALSE);
+ }
}
g_free(params);