summaryrefslogtreecommitdiff
path: root/src/channels.c
diff options
context:
space:
mode:
authorAdam <Adam@drink-coca-cola.info>2010-05-15 00:56:52 -0400
committerAdam <Adam@anope.org>2010-06-18 21:01:55 -0400
commitee57f5719301c3883afcffe5970746f378960917 (patch)
tree994ac1f0dbc675e9950050a2332bb17da79d5f02 /src/channels.c
parentc966d7ec17690037a597e1d8908782de376f3052 (diff)
Store modes in users and channels using the Flags class, cleaner
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/channels.c b/src/channels.c
index 6250d2342..4cdfb2c42 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -271,7 +271,7 @@ bool Channel::HasUserStatus(User *u, ChannelModeName Name)
*/
bool Channel::HasMode(ChannelModeName Name)
{
- return modes[Name];
+ return modes.HasFlag(Name);
}
/** Set a mode internally on a channel, this is not sent out to the IRCd
@@ -334,7 +334,7 @@ void Channel::SetModeInternal(ChannelMode *cm, const std::string &param, bool En
return;
}
- modes[cm->Name] = true;
+ modes.SetFlag(cm->Name);
if (!param.empty())
{
@@ -476,7 +476,7 @@ void Channel::RemoveModeInternal(ChannelMode *cm, const std::string &param, bool
return;
}
- modes[cm->Name] = false;
+ modes.UnsetFlag(cm->Name);
if (cm->Type == MODE_PARAM)
{
@@ -719,7 +719,7 @@ void Channel::ClearModes(BotInfo *bi)
}
}
- modes.reset();
+ modes.ClearFlags();
}
/** Clear all the bans from the channel