diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-02 00:06:56 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-02 00:06:56 +0100 |
commit | 4c737ebd1a0224d325ee0ab6b3b374861c708452 (patch) | |
tree | 6d3c217ec359160702ef24e0adaea85493f742fc /irc_im.c | |
parent | 31dbb90a2d32d6988706ae4b5c2292cd43d89595 (diff) |
Fixed NULL ptr dereference when hilighting non-IM users in chatrooms.
Diffstat (limited to 'irc_im.c')
-rw-r--r-- | irc_im.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -692,7 +692,7 @@ static gboolean bee_irc_channel_chat_privmsg( irc_channel_t *ic, const char *msg if( ( s = strchr( nick, ':' ) ) || ( s = strchr( nick, ',' ) ) ) { *s = '\0'; - if( ( iu = irc_user_by_name( ic->irc, nick ) ) && + if( ( iu = irc_user_by_name( ic->irc, nick ) ) && iu->bu && iu->bu->nick && irc_channel_has_user( ic, iu ) ) { trans = g_strconcat( iu->bu->nick, msg + ( s - nick ), NULL ); |