summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-08-21 01:35:57 -0400
committerAdam <Adam@anope.org>2013-08-21 01:35:57 -0400
commit765943062e94fdc23cdc3f2622f0c21d30fd0503 (patch)
tree7aa2419b5dfb8c6fb5518fa75d7e07f27d441d17 /modules
parent17cca42d48301d6a50b27a7ae1af292d7ad2f555 (diff)
Always require the registered channel mode is set. Comment out default config requiring "r" as some ircds use it for registered users only
Diffstat (limited to 'modules')
-rw-r--r--modules/pseudoclients/chanserv.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp
index e1d98e64c..efb0a78ab 100644
--- a/modules/pseudoclients/chanserv.cpp
+++ b/modules/pseudoclients/chanserv.cpp
@@ -259,13 +259,15 @@ class ChanServCore : public Module, public ChanServService
void OnCheckModes(Channel *c) anope_override
{
+ if (c->ci)
+ c->SetMode(c->ci->WhoSends(), "REGISTERED", "", false);
const Anope::string &require = Config->GetModule(this)->Get<const Anope::string>("require", "r");
if (!require.empty())
{
if (c->ci)
- c->SetModes(NULL, false, "+%s", require.c_str());
+ c->SetModes(c->ci->WhoSends(), false, "+%s", require.c_str());
else
- c->SetModes(NULL, false, "-%s", require.c_str());
+ c->SetModes(c->ci->WhoSends(), false, "-%s", require.c_str());
}
}