summaryrefslogtreecommitdiff
path: root/modules/pseudoclients
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-09-13 04:39:50 -0400
committerAdam <Adam@anope.org>2013-09-27 17:21:20 -0400
commit20856fb59c8a474b381db4a1dd414113dc1e4a19 (patch)
treee73d7d05232857cef2ed1bafc3e751c2c6fc51e8 /modules/pseudoclients
parent7545763cd41675ddd37e5b066969da305f1fb68a (diff)
Remove +r etc when channels are deleted
Diffstat (limited to 'modules/pseudoclients')
-rw-r--r--modules/pseudoclients/chanserv.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp
index 1f0653874..6d629dd6c 100644
--- a/modules/pseudoclients/chanserv.cpp
+++ b/modules/pseudoclients/chanserv.cpp
@@ -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())
{