aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/irc_im.c b/irc_im.c
index 662a5bf2..f6229207 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -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 );