1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 05:56:39 +02:00

Added Italics support to the BotSev kickers

This commit is contained in:
lethality
2010-08-02 03:35:12 +01:00
parent f887b37453
commit 94371e69a9
21 changed files with 388 additions and 2 deletions
+11
View File
@@ -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];