aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc_commands.c')
-rw-r--r--irc_commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/irc_commands.c b/irc_commands.c
index 9a46f882..740d3eb2 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -1,7 +1,7 @@
/********************************************************************\
* BitlBee -- An IRC to other IM-networks gateway *
* *
- * Copyright 2002-2010 Wilmer van der Gaast and others *
+ * Copyright 2002-2012 Wilmer van der Gaast and others *
\********************************************************************/
/* IRC commands */
@@ -381,6 +381,8 @@ static void irc_cmd_privmsg( irc_t *irc, char **cmd )
static void irc_cmd_notice( irc_t *irc, char **cmd )
{
+ irc_user_t *iu;
+
if( !cmd[2] )
{
irc_send_num( irc, 412, ":No text to send" );
@@ -391,6 +393,8 @@ static void irc_cmd_notice( irc_t *irc, char **cmd )
for lag checks, so try to support that. */
if( nick_cmp( cmd[1], irc->user->nick ) == 0 )
irc_send_msg( irc->user, "NOTICE", irc->user->nick, cmd[2], NULL );
+ else if( ( iu = irc_user_by_name( irc, cmd[1] ) ) )
+ iu->f->privmsg( iu, cmd[2] );
}
static void irc_cmd_nickserv( irc_t *irc, char **cmd )