summaryrefslogtreecommitdiff
path: root/src/nickserv.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-13 21:26:38 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-13 21:26:38 +0000
commitd3d64c27b199622c90075d6f59dd08e44acbb378 (patch)
tree68029e10dc754271235e2a4e3d04b3fb19ddd15c /src/nickserv.c
parent1fd66851320e239b531720c27614a5ad4c604c97 (diff)
Complete rewrite of everything associated with modes, this breaks saving and reading mlocked modes from the databases until the new databases are implemented
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2560 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/nickserv.c')
-rw-r--r--src/nickserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nickserv.c b/src/nickserv.c
index a20a0b8b1..110c52e29 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -1408,7 +1408,7 @@ int should_mode_change(int16 status, int16 mode)
return 1;
break;
case CUS_OWNER:
- if (ircd->owner)
+ if (ModeManager::FindChannelModeByName(CMODE_OWNER))
{
if (status & CUS_OWNER)
{
@@ -1417,7 +1417,7 @@ int should_mode_change(int16 status, int16 mode)
}
break;
case CUS_PROTECT:
- if (ircd->protect)
+ if (ModeManager::FindChannelModeByName(CMODE_PROTECT))
{
if (status & CUS_PROTECT)
{