summaryrefslogtreecommitdiff
path: root/modules/commands/cs_mode.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-08-25 21:33:52 -0400
committerAdam <Adam@anope.org>2013-08-25 21:33:52 -0400
commit714a4a3004062b3998d5ddd8518768ac87d9a7dd (patch)
tree1fb0bcd9c5c998dc0084032f2c519962bed869d6 /modules/commands/cs_mode.cpp
parent34826f71c78ea9ba3ae0613fb701c1b15073b58f (diff)
Remove unnecesary mlock code in cs_mode, change mode set events to never bounce modes set by bots or servers, as it was possible to get modules to fight with each other
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r--modules/commands/cs_mode.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp
index 7bbd2cdde..f3520dfec 100644
--- a/modules/commands/cs_mode.cpp
+++ b/modules/commands/cs_mode.cpp
@@ -913,36 +913,6 @@ class CSMode : public Module
}
}
- EventReturn OnChannelModeSet(Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string &param) anope_override
- {
- if (!c->ci)
- return EVENT_CONTINUE;
-
- ModeLocks *ml = modelocks.Get(c->ci);
- if (!ml)
- return EVENT_CONTINUE;
-
- if (ml->HasMLock(mode, param, false))
- c->RemoveMode(c->ci->WhoSends(), mode, param);
-
- return EVENT_CONTINUE;
- }
-
- EventReturn OnChannelModeUnset(Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string &param) anope_override
- {
- if (!c->ci)
- return EVENT_CONTINUE;
-
- ModeLocks *ml = modelocks.Get(c->ci);
- if (!ml)
- return EVENT_CONTINUE;
-
- if (ml->HasMLock(mode, param, true))
- c->SetMode(c->ci->WhoSends(), mode, param);
-
- return EVENT_CONTINUE;
- }
-
void OnCreateChan(ChannelInfo *ci) anope_override
{
ModeLocks *ml = modelocks.Require(ci);