1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Merge pull request #1292 from ailin-nemui/nonick

don't bother if we don't have a nick
This commit is contained in:
ailin-nemui 2021-04-01 22:13:01 +02:00 committed by GitHub
commit e0b98e1fa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}