diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2005-11-02 20:40:21 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-11-02 20:40:21 +0000 |
commit | 0e7af32922f2f99874dd4cefb8f5f28cac0e9efe (patch) | |
tree | da5a5c596a85ae082f74fe93e80bb71ac2743f64 /src/irc/core/irc-queries.c | |
parent | 5c6b41b6864cabd27c4f80e2e92ca4a0f0a56543 (diff) | |
download | irssi-0e7af32922f2f99874dd4cefb8f5f28cac0e9efe.zip |
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
Diffstat (limited to 'src/irc/core/irc-queries.c')
-rw-r--r-- | src/irc/core/irc-queries.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c index a2a545f5..1b089778 100644 --- a/src/irc/core/irc-queries.c +++ b/src/irc/core/irc-queries.c @@ -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); |