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:
@@ -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> ¶ms) 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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user