mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
fix crashes when nick is missing
This commit is contained in:
parent
4d01170aa1
commit
d5329bc811
@ -475,6 +475,7 @@ static void event_away_notify(IRC_SERVER_REC *server, const char *data, const ch
|
|||||||
if (!IS_IRC_SERVER(server))
|
if (!IS_IRC_SERVER(server))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
g_return_if_fail(nick != NULL);
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
params = event_get_params(data, 1 | PARAM_FLAG_GETREST, &awaymsg);
|
params = event_get_params(data, 1 | PARAM_FLAG_GETREST, &awaymsg);
|
||||||
|
@ -111,6 +111,7 @@ static void event_chghost(IRC_SERVER_REC *server, const char *data,
|
|||||||
char *params, *user, *host, *address;
|
char *params, *user, *host, *address;
|
||||||
GSList *nicks, *tmp;
|
GSList *nicks, *tmp;
|
||||||
|
|
||||||
|
g_return_if_fail(nick != NULL);
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
params = event_get_params(data, 2, &user, &host);
|
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;
|
char *params, *account;
|
||||||
GSList *nicks, *tmp;
|
GSList *nicks, *tmp;
|
||||||
|
|
||||||
|
g_return_if_fail(nick != NULL);
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
params = event_get_params(data, 1, &account);
|
params = event_get_params(data, 1, &account);
|
||||||
|
Loading…
Reference in New Issue
Block a user