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

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.

This commit is contained in:
Adam
2012-02-26 23:23:15 -05:00
parent a78790eac4
commit a5b9e235ae
18 changed files with 139 additions and 172 deletions
+1 -1
View File
@@ -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;
}