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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user