1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 00:43:14 +02:00

Don't allow mlocking/defconing modes such as beIohv

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2698 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2009-12-13 23:14:20 +00:00
parent 46c0d40009
commit 710355fd2c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ class CommandCSSet : public Command
if ((cm = ModeManager::FindChannelModeByChar(mode)))
{
if (!cm->CanSet(u))
if (cm->Type == MODE_STATUS || cm->Type == MODE_LIST || !cm->CanSet(u))
{
notice_lang(Config.s_ChanServ, u, CHAN_SET_MLOCK_IMPOSSIBLE_CHAR, mode);
}
+1 -1
View File
@@ -433,7 +433,7 @@ void defconParseModeString(const char *str)
if ((cm = ModeManager::FindChannelModeByChar(mode)))
{
if (!cm->CanSet(NULL))
if (cm->Type == MODE_STATUS || cm->Type == MODE_LIST || !cm->CanSet(NULL))
{
alog("DefConChanModes mode character '%c' cannot be locked", mode);
continue;