mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
don't bother if we don't have a nick
Credit to OSS-Fuzz
This commit is contained in:
parent
cdb30695f9
commit
4c25bef29c
1 changed files with 5 additions and 0 deletions
|
|
@ -72,6 +72,11 @@ static void event_join(IRC_SERVER_REC *server, const char *data,
|
||||||
|
|
||||||
/* add user to nicklist */
|
/* add user to nicklist */
|
||||||
nickrec = irc_nicklist_insert(chanrec, nick, FALSE, FALSE, FALSE, send_massjoin, NULL);
|
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) {
|
if (*account != '\0' && g_strcmp0(nickrec->account, account) != 0) {
|
||||||
nicklist_set_account(CHANNEL(chanrec), nickrec, account);
|
nicklist_set_account(CHANNEL(chanrec), nickrec, account);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue