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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user