1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -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 */ /* 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);
} }