summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-01 21:17:52 -0400
committerAdam <Adam@anope.org>2010-08-01 21:17:52 -0400
commitf887b37453ae55a4a61e0e7c6ee774f38dddfc2e (patch)
treebc8536f599f36057b88fb937f7c520d1f707b249
parentfd31d4aa29033327b52dd8ac3bbc545497f47d3d (diff)
Set the correct bs default flags on new channels
-rw-r--r--include/services.h4
-rw-r--r--src/regchannel.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/services.h b/include/services.h
index e48ba1924..8ed87b8f3 100644
--- a/include/services.h
+++ b/include/services.h
@@ -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) */
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index f08fa1cc4..bdb4572f4 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -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));