From 0ed0fa4af62554a7281d403b6895b29e198e8186 Mon Sep 17 00:00:00 2001 From: Adam- Date: Thu, 21 Jan 2010 06:31:17 +0000 Subject: Rewrote how Anope stores channel status modes on users. This allows 3rd party modules to add and track their own status mode. Additionally we now store a users status in both the UserContainer and ChannelContainer. This also fixes the ModeStacker to not send any mode strings unnecessarially and shuffles some code around so we don't have to manually remove channels from users lists everywhere. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2775 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/cs_register.c') diff --git a/src/core/cs_register.c b/src/core/cs_register.c index bf3472c5a..d934afb6e 100644 --- a/src/core/cs_register.c +++ b/src/core/cs_register.c @@ -49,7 +49,7 @@ class CommandCSRegister : public Command notice_lang(Config.s_ChanServ, u, CHAN_ALREADY_REGISTERED, chan); else if (!stricmp(chan, "#")) notice_lang(Config.s_ChanServ, u, CHAN_MAY_NOT_BE_REGISTERED, chan); - else if (!chan_has_user_status(c, u, CUS_OP)) + else if (!c->HasUserStatus(u, CMODE_OP)) notice_lang(Config.s_ChanServ, u, CHAN_MUST_BE_CHANOP); else if (Config.CSMaxReg && u->nc->channelcount >= Config.CSMaxReg && !u->nc->HasPriv("chanserv/no-register-limit")) notice_lang(Config.s_ChanServ, u, u->nc->channelcount > Config.CSMaxReg ? CHAN_EXCEEDED_CHANNEL_LIMIT : CHAN_REACHED_CHANNEL_LIMIT, Config.CSMaxReg); -- cgit