summaryrefslogtreecommitdiff
path: root/src/modes.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-07-14 02:31:12 -0400
committerAdam <Adam@anope.org>2011-07-14 02:31:12 -0400
commitf858164deed48f2dcacd5ffc06a55398a54da7e8 (patch)
tree89c3cf36bd8e94942370135218d67d6d17ee222e /src/modes.cpp
parent924f6849fee4598a1a3a7f1a98d96b79e5ffd3b4 (diff)
Rewrote how commands are handled within Anope.
This allows naming commands and having spaces within command names.
Diffstat (limited to 'src/modes.cpp')
-rw-r--r--src/modes.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index b91cc9b85..daada4322 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -279,29 +279,6 @@ bool ChannelModeRegistered::CanSet(User *u) const
return false;
}
-/** Add a ban to the channel
- * @param chan The channel
- * @param mask The ban
- */
-void ChannelModeBan::OnAdd(Channel *chan, const Anope::string &mask)
-{
- /* check for NULL values otherwise we will segfault */
- if (!chan || mask.empty())
- return;
-
- /* Check whether it matches a botserv bot */
- if (!Config->s_BotServ.empty() && Config->BSSmartJoin && chan->ci && chan->ci->bi && chan->FindUser(chan->ci->bi))
- {
- BotInfo *bi = chan->ci->bi;
-
- Entry ban(CMODE_BAN, mask);
- if (ban.Matches(bi))
- chan->RemoveMode(NULL, CMODE_BAN, mask);
- }
-
- Log(LOG_DEBUG) << "Added ban " << mask << " to channel " << chan->name;
-}
-
void StackerInfo::AddMode(Mode *mode, bool Set, const Anope::string &Param)
{
ChannelMode *cm = NULL;