diff options
author | Adam <Adam@anope.org> | 2012-02-26 23:23:15 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-26 23:23:15 -0500 |
commit | a5b9e235ae240439608aa743c9ebb3bf6e7d342a (patch) | |
tree | 9c3040b865ace191c224a94ef525ab60581c6ba5 /src/modes.cpp | |
parent | a78790eac4da788a8432d0b83fa72de7853dd697 (diff) |
Added chanserv:require config option to set which modes must be on all registered channels. Prevents the core from always enforcing +r on every channel, even if chanserv is not loaded.
Diffstat (limited to 'src/modes.cpp')
-rw-r--r-- | src/modes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes.cpp b/src/modes.cpp index 580c9f2d7..cbfdc093b 100644 --- a/src/modes.cpp +++ b/src/modes.cpp @@ -178,7 +178,7 @@ ChannelMode::~ChannelMode() */ bool ChannelMode::CanSet(User *u) const { - if (Config->NoMLock.find(this->ModeChar) != Anope::string::npos) + if (Config->NoMLock.find(this->ModeChar) != Anope::string::npos || Config->CSRequire.find(this->ModeChar) != Anope::string::npos) return false; return true; } |