1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-07 02:54:19 -04:00

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

Credit to OSS-Fuzz
This commit is contained in:
Ailin Nemui 2021-04-01 21:53:30 +02:00
parent cdb30695f9
commit 4c25bef29c

View File

@ -72,6 +72,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, send_massjoin, NULL);
if (nickrec == NULL) {
/* invalid nick? */
g_free(params);
return;
}
if (*account != '\0' && g_strcmp0(nickrec->account, account) != 0) {
nicklist_set_account(CHANNEL(chanrec), nickrec, account);
}