From 94371e69a9bf623442feb16cebe21b2ad71e6c2a Mon Sep 17 00:00:00 2001 From: lethality Date: Mon, 2 Aug 2010 03:35:12 +0100 Subject: Added Italics support to the BotSev kickers --- src/botserv.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/botserv.cpp b/src/botserv.cpp index ae62e7e69..321060f29 100644 --- a/src/botserv.cpp +++ b/src/botserv.cpp @@ -163,6 +163,14 @@ void botchanmsgs(User *u, ChannelInfo *ci, const Anope::string &buf) bot_kick(ci, u, BOT_REASON_REVERSE); return; } + + /* Italics kicker */ + if (ci->botflags.HasFlag(BS_KICK_ITALICS) && realbuf.find(29) != Anope::string::npos) + { + check_ban(ci, u, TTB_ITALICS); + bot_kick(ci, u, BOT_REASON_ITALIC); + return; + } /* Underlines kicker */ if (ci->botflags.HasFlag(BS_KICK_UNDERLINES) && realbuf.find(31) != Anope::string::npos) @@ -695,6 +703,9 @@ Anope::string normalizeBuffer(const Anope::string &buf) /* Underline ctrl char */ case 31: break; + /* Italic ctrl char */ + case 29: + break; /* A valid char gets copied into the new buffer */ default: newbuf += buf[i]; -- cgit