mirror of
https://github.com/anope/anope.git
synced 2026-06-25 18:56:37 +02:00
Added Italics support to the BotSev kickers
This commit is contained in:
@@ -329,6 +329,7 @@ BotFlagInfo BotFlags[] = {
|
||||
{"KICK_CAPS", BS_KICK_CAPS},
|
||||
{"KICK_FLOOD", BS_KICK_FLOOD},
|
||||
{"KICK_REPEAT", BS_KICK_REPEAT},
|
||||
{"KICK_ITALICS", BS_KICK_ITALICS},
|
||||
{"", static_cast<BotServFlag>(-1)}
|
||||
};
|
||||
|
||||
@@ -830,6 +831,8 @@ class DBPlain : public Module
|
||||
ci->ttb[6] = params[j + 1].is_number_only() ? convertTo<int16>(params[j + 1]) : 0;
|
||||
else if (params[j].equals_ci("REPEAT"))
|
||||
ci->ttb[7] = params[j + 1].is_number_only() ? convertTo<int16>(params[j + 1]) : 0;
|
||||
else if (params[j].equals_ci("ITALICS"))
|
||||
ci->ttb[8] = params[j + 1].is_number_only() ? convertTo<int16>(params[j + 1]) : 0;
|
||||
}
|
||||
}
|
||||
else if (params[0].equals_ci("CAPSMIN"))
|
||||
@@ -1078,7 +1081,7 @@ class DBPlain : public Module
|
||||
db << " " << BotFlags[j].Name;
|
||||
db << endl;
|
||||
}
|
||||
db << "MD BI TTB BOLDS " << ci->ttb[0] << " COLORS " << ci->ttb[1] << " REVERSES " << ci->ttb[2] << " UNDERLINES " << ci->ttb[3] << " BADWORDS " << ci->ttb[4] << " CAPS " << ci->ttb[5] << " FLOOD " << ci->ttb[6] << " REPEAT " << ci->ttb[7] << endl;
|
||||
db << "MD BI TTB BOLDS " << ci->ttb[0] << " COLORS " << ci->ttb[1] << " REVERSES " << ci->ttb[2] << " UNDERLINES " << ci->ttb[3] << " BADWORDS " << ci->ttb[4] << " CAPS " << ci->ttb[5] << " FLOOD " << ci->ttb[6] << " REPEAT " << ci->ttb[7] << " ITALICS " << ci->ttb[8] << endl;
|
||||
if (ci->capsmin)
|
||||
db << "MD BI CAPSMIN " << ci->capsmin << endl;
|
||||
if (ci->capspercent)
|
||||
|
||||
Reference in New Issue
Block a user