aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-27 12:27:47 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-27 12:27:47 +0200
commita7dbf453dacf12fe27f361043057caba19b5695f (patch)
tree7091c1cd6cc5aba5d521b755e6283b0ac70dff4e /irc_commands.c
parent3fa5a8cf5a5784888030d1072c9cc9a0f8a59335 (diff)
Block CTCPs to channels instead of sending them as plain messages. Maybe
some other day I'll find a reason for actually supporting them.
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 0bf20cfc..0fda9669 100644
--- a/irc_commands.c
+++ b/irc_commands.c
@@ -331,7 +331,11 @@ static void irc_cmd_privmsg( irc_t *irc, char **cmd )
if( irc_channel_name_ok( cmd[1] ) &&
( ic = irc_channel_by_name( irc, cmd[1] ) ) )
{
- if( ic->f->privmsg )
+ if( cmd[2][0] == '\001' )
+ {
+ /* CTCPs to channels? Nah. Maybe later. */
+ }
+ else if( ic->f->privmsg )
ic->f->privmsg( ic, cmd[2] );
}
else if( ( iu = irc_user_by_name( irc, cmd[1] ) ) )