1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 05:13:12 +02:00

Fix not setting -r when channels are deleted

This commit is contained in:
Adam
2013-10-02 13:31:45 -04:00
parent e589080827
commit e5b8435769
+7 -1
View File
@@ -228,7 +228,13 @@ class ChanServCore : public Module, public ChanServService
}
if (ci->c)
OnCheckModes(ci->c);
{
ci->c->RemoveMode(ci->WhoSends(), "REGISTERED", "", false);
const Anope::string &require = Config->GetModule(this)->Get<const Anope::string>("require");
if (!require.empty())
ci->c->SetModes(ci->WhoSends(), false, "-%s", require.c_str());
}
}
EventReturn OnPreHelp(CommandSource &source, const std::vector<Anope::string> &params) anope_override