summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-03-12 13:44:05 -0400
committerAdam <Adam@anope.org>2015-03-12 17:52:38 -0400
commit303e652a3563c50d8836996851341840b1ad4277 (patch)
tree66a29de0496a31db9833592245d59148648c38d8 /modules/commands/cs_set.cpp
parente5447a8024ce5d128d40d08fe5d194d91458b752 (diff)
Only apply keepmodes on channel sync
Not sure why this was this way originally, it interfears with the chanserv +r check to determine how new the channel is because it restores +r. This seems to still work okay, though.
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r--modules/commands/cs_set.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index afd2c3547..73bdb5a0c 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -1235,7 +1235,7 @@ class CSSet : public Module
ci->bantype = Config->GetModule(this)->Get<int>("defbantype", "2");
}
- void OnChannelCreate(Channel *c) anope_override
+ void OnChannelSync(Channel *c) anope_override
{
if (c->ci && keep_modes.HasExt(c->ci))
{
@@ -1245,11 +1245,6 @@ class CSSet : public Module
}
}
- void OnChannelSync(Channel *c) anope_override
- {
- OnChannelCreate(c);
- }
-
EventReturn OnCheckKick(User *u, Channel *c, Anope::string &mask, Anope::string &reason) anope_override
{
if (!c->ci || !restricted.HasExt(c->ci) || c->MatchesList(u, "EXCEPT"))