1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 04:46:37 +02:00

Added options:nomlock

This commit is contained in:
Adam
2011-01-19 00:31:18 -05:00
parent e7a8bcc30b
commit ab2e34d817
6 changed files with 24 additions and 2 deletions
+11
View File
@@ -192,6 +192,17 @@ ChannelMode::~ChannelMode()
{
}
/** Can a user set this mode, used for mlock
* NOTE: User CAN be NULL, this is for checking if it can be locked with defcon
* @param u The user, or NULL
*/
bool ChannelMode::CanSet(User *u) const
{
if (Config->NoMLock.find(this->ModeChar) != Anope::string::npos)
return false;
return true;
}
/** Default constructor
* @param mName The mode name
* @param mNameAsString The mode name as a string