summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-28 23:02:07 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-28 23:02:07 +0000
commita08b3ec5924c946308ac086cd3ee7d701610d3be (patch)
tree84da442a85ffeccd6425cc7c85db9eda6e881753 /src/regchannel.cpp
parentf6b823ade85160f94544d1ad1de4d8fbc42b2712 (diff)
Massive move of all of the Config variables out of global scope to the Config class
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2674 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index d4b37f4e9..993000b38 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -44,16 +44,16 @@ ChannelInfo::ChannelInfo(const std::string &chname)
size_t t;
/* Set default channel flags */
for (t = CI_BEGIN + 1; t != CI_END; ++t)
- if (CSDefFlags.HasFlag(static_cast<ChannelInfoFlag>(t)))
+ if (Config.CSDefFlags.HasFlag(static_cast<ChannelInfoFlag>(t)))
this->SetFlag(static_cast<ChannelInfoFlag>(t));
/* Set default bot flags */
for (t = BI_BEGIN + 1; t != BI_END; ++t)
- if (BSDefFlags.HasFlag(static_cast<BotServFlag>(t)))
+ if (Config.BSDefFlags.HasFlag(static_cast<BotServFlag>(t)))
this->botflags.SetFlag(static_cast<BotServFlag>(t));
- bantype = CSDefBantype;
- memos.memomax = MSMaxMemos;
+ bantype = Config.CSDefBantype;
+ memos.memomax = Config.MSMaxMemos;
last_used = time_registered = time(NULL);
this->ttb = new int16[2 * TTB_SIZE];
@@ -86,7 +86,7 @@ ChannelInfo::~ChannelInfo()
if (this->c)
{
- if (this->bi && this->c->usercount >= BSMinUsers)
+ if (this->bi && this->c->usercount >= Config.BSMinUsers)
ircdproto->SendPart(this->bi, this->c->name, NULL);
this->c->ci = NULL;
}