Merge pull request #1292 from ailin-nemui/nonick

don't bother if we don't have a nick

(cherry picked from commit e0b98e1fa5)
This commit is contained in:
ailin-nemui 2021-04-01 22:13:01 +02:00 committed by Ailin Nemui
commit ef4bad3600

View file

@ -66,6 +66,11 @@ static void event_join(IRC_SERVER_REC *server, const char *data,
/* add user to nicklist */
nickrec = irc_nicklist_insert(chanrec, nick, FALSE, FALSE, FALSE, TRUE, NULL);
if (nickrec == NULL) {
/* invalid nick? */
return;
}
nicklist_set_host(CHANNEL(chanrec), nickrec, address);
if (chanrec->massjoins == 0) {