summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/botserv.cpp11
1 files changed, 11 insertions, 0 deletions
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];