diff options
| author | lethality <lethality@anope.org> | 2010-08-02 03:35:12 +0100 |
|---|---|---|
| committer | lethality <lethality@anope.org> | 2010-08-02 03:35:12 +0100 |
| commit | 94371e69a9bf623442feb16cebe21b2ad71e6c2a (patch) | |
| tree | eb834f14d8f7ee0c29e448d14f597d186abe188e /src/botserv.cpp | |
| parent | f887b37453ae55a4a61e0e7c6ee774f38dddfc2e (diff) | |
Added Italics support to the BotSev kickers
Diffstat (limited to 'src/botserv.cpp')
| -rw-r--r-- | src/botserv.cpp | 11 |
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]; |
