From 303e652a3563c50d8836996851341840b1ad4277 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 12 Mar 2015 13:44:05 -0400 Subject: 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. --- modules/commands/cs_set.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'modules/commands/cs_set.cpp') 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("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")) -- cgit