From a7dbf453dacf12fe27f361043057caba19b5695f Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 27 Jul 2010 12:27:47 +0200 Subject: Block CTCPs to channels instead of sending them as plain messages. Maybe some other day I'll find a reason for actually supporting them. --- irc_commands.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'irc_commands.c') 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] ) ) ) -- cgit v1.2.3