Merge pull request #1292 from ailin-nemui/nonick

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

(cherry picked from commit e0b98e1fa57a2f9faf6616af404f630e8c7527e6)
This commit is contained in:
ailin-nemui 2021-04-01 22:13:01 +02:00 committed by Ailin Nemui
parent d05e65b2f9
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) {