1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

Merge pull request #1105 from ailin-nemui/missing-nick

fix crashes when nick is missing
This commit is contained in:
ailin-nemui 2019-08-16 21:41:05 +02:00 committed by GitHub
commit 4359e4a5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -475,6 +475,7 @@ static void event_away_notify(IRC_SERVER_REC *server, const char *data, const ch
if (!IS_IRC_SERVER(server))
return;
g_return_if_fail(nick != NULL);
g_return_if_fail(data != NULL);
params = event_get_params(data, 1 | PARAM_FLAG_GETREST, &awaymsg);

View File

@ -111,6 +111,7 @@ static void event_chghost(IRC_SERVER_REC *server, const char *data,
char *params, *user, *host, *address;
GSList *nicks, *tmp;
g_return_if_fail(nick != NULL);
g_return_if_fail(data != NULL);
params = event_get_params(data, 2, &user, &host);
@ -135,6 +136,7 @@ static void event_account(IRC_SERVER_REC *server, const char *data,
char *params, *account;
GSList *nicks, *tmp;
g_return_if_fail(nick != NULL);
g_return_if_fail(data != NULL);
params = event_get_params(data, 1, &account);