1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 23:46:38 +02:00

Remove +r etc when channels are deleted

This commit is contained in:
Adam
2013-09-13 04:39:50 -04:00
parent 7545763cd4
commit 20856fb59c
+6
View File
@@ -223,6 +223,9 @@ class ChanServCore : public Module, public ChanServService
}
}
}
if (ci->c)
OnCheckModes(ci->c);
}
EventReturn OnPreHelp(CommandSource &source, const std::vector<Anope::string> &params) anope_override
@@ -261,6 +264,9 @@ class ChanServCore : public Module, public ChanServService
{
if (c->ci)
c->SetMode(c->ci->WhoSends(), "REGISTERED", "", false);
else
c->RemoveMode(c->ci->WhoSends(), "REGISTERED", "", false);
const Anope::string &require = Config->GetModule(this)->Get<const Anope::string>("require");
if (!require.empty())
{