1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Don't crash if receiving broken privmsg without source (which bitlbee can send if you msg yourself)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4062 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Wouter Coekaerts 2005-11-02 20:40:21 +00:00 committed by coekie
parent 5c6b41b686
commit 0e7af32922

View File

@ -85,6 +85,8 @@ static void event_privmsg(IRC_SERVER_REC *server, const char *data,
char *params, *target, *msg;
g_return_if_fail(data != NULL);
if (nick == NULL)
return;
params = event_get_params(data, 2 | PARAM_FLAG_GETREST, &target, &msg);
check_query_changes(server, nick, address, target);