summaryrefslogtreecommitdiff
path: root/modules/commands/cs_register.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_register.cpp')
-rw-r--r--modules/commands/cs_register.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/modules/commands/cs_register.cpp b/modules/commands/cs_register.cpp
index 633364d31..570fd8125 100644
--- a/modules/commands/cs_register.cpp
+++ b/modules/commands/cs_register.cpp
@@ -76,7 +76,7 @@ class CommandCSRegister : public Command
/* Implement new mode lock */
if (c)
{
- check_modes(c);
+ c->CheckModes();
ChannelMode *cm;
if (u->FindChannel(c) != NULL)
@@ -138,16 +138,6 @@ class CSRegister : public Module
commandcsregister(this)
{
this->SetAuthor("Anope");
-
- ModuleManager::Attach(I_OnDelChan, this);
- }
-
- void OnDelChan(ChannelInfo *ci) anope_override
- {
- if (ci->c && ci->c->HasMode(CMODE_REGISTERED))
- ci->c->RemoveMode(NULL, CMODE_REGISTERED, "", false);
- if (ci->c && ci->HasFlag(CI_PERSIST))
- ci->c->RemoveMode(NULL, CMODE_PERM, "", false);
}
};