From 9900f83d943d22733c94a227650a0d6f060eb0e4 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Sun, 30 Aug 2009 20:54:30 +0000 Subject: Fix chanserv.c to compile after DEFCON changes. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2488 5417fbe8-f217-4b02-8779-1006273d7864 --- src/chanserv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/chanserv.c b/src/chanserv.c index 65ddaaf4a..3017bfd8a 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -778,7 +778,7 @@ void check_modes(Channel * c) /* Initialize the modes-var to set all modes not set yet but which should * be set as by mlock and defcon. */ - if (ci) + if (ci) modes = ~c->mode & ci->mlock_on; if (DefConModesSet) modes |= (~c->mode & DefConModesOn); @@ -802,7 +802,7 @@ void check_modes(Channel * c) value = cbmi->csgetvalue(ci); else { value = NULL; - if (debug) + if (debug) alog ("Warning: setting modes with unknown origin."); } @@ -895,7 +895,7 @@ void check_modes(Channel * c) *end = 0; *end2 = 0; - ircdproto->SendMode((ci ? whosends(ci) : s_OperServ), c->name, "%s%s", modebuf, + ircdproto->SendMode((ci ? whosends(ci) : findbot(s_OperServ)), c->name, "%s%s", modebuf, (end2 == argbuf ? "" : argbuf)); } -- cgit