1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 04:23:13 +02:00

Set the correct bs default flags on new channels

This commit is contained in:
Adam
2010-08-01 21:17:52 -04:00
parent fd31d4aa29
commit f887b37453
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -667,6 +667,7 @@ enum ChannelAccess
/* BotServ SET flags */
enum BotServFlag
{
BS_BEGIN,
/* BotServ won't kick ops */
BS_DONTKICKOPS,
/* BotServ won't kick voices */
@@ -694,7 +695,8 @@ enum BotServFlag
/* BotServ kicks for flood */
BS_KICK_FLOOD,
/* BotServ kicks for repeating */
BS_KICK_REPEAT
BS_KICK_REPEAT,
BS_END
};
/* Indices for TTB (Times To Ban) */
+1 -1
View File
@@ -43,7 +43,7 @@ ChannelInfo::ChannelInfo(const Anope::string &chname)
this->SetFlag(static_cast<ChannelInfoFlag>(t));
/* Set default bot flags */
for (t = BI_BEGIN + 1; t != BI_END; ++t)
for (t = BS_BEGIN + 1; t != BS_END; ++t)
if (Config.BSDefFlags.HasFlag(static_cast<BotServFlag>(t)))
this->botflags.SetFlag(static_cast<BotServFlag>(t));