From a7ac6a0ac712892652da6dd8696b94d4c6d3ea84 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 13 Dec 2009 19:32:19 +0000 Subject: Added in a modestacker and rewrote almost all of the remaining old mode code git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2696 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_register.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/cs_register.c') diff --git a/src/core/cs_register.c b/src/core/cs_register.c index 6a258a684..364fed989 100644 --- a/src/core/cs_register.c +++ b/src/core/cs_register.c @@ -82,9 +82,9 @@ class CommandCSRegister : public Command check_modes(c); /* On most ircds you do not receive the admin/owner mode till its registered */ if ((cm = ModeManager::FindChannelModeByName(CMODE_OWNER))) - ircdproto->SendMode(findbot(Config.s_ChanServ), chan, "+%c %s", cm->ModeChar, u->nick); + c->SetMode(NULL, cm, u->nick); else if ((cm = ModeManager::FindChannelModeByName(CMODE_PROTECT))) - ircdproto->SendMode(findbot(Config.s_ChanServ), chan, "+%c %s", cm->ModeChar, u->nick); + c->RemoveMode(NULL, cm, u->nick); /* Mark the channel as persistant */ if (c->HasMode(CMODE_PERM)) @@ -92,7 +92,7 @@ class CommandCSRegister : public Command /* Persist may be in def cflags, set it here */ else if (ci->HasFlag(CI_PERSIST) && (cm = ModeManager::FindChannelModeByName(CMODE_PERM))) { - ircdproto->SendMode(whosends(ci), chan, "+%c", cm->ModeChar); + c->SetMode(NULL, CMODE_PERM); ci->SetFlag(CI_PERSIST); } -- cgit