From 458be36a321615c0f3004a6abde7e14d40f5da32 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 8 Nov 2009 20:06:21 +0000 Subject: Rewrote all of the old C style flag systems into a new Flag class which everything inherits from. This breaks reading and writing flags to the old databases (and probably many other things aswell) - Don't use it git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2636 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_xop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/cs_xop.c') diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c index e79cb6515..52bf1e4f1 100644 --- a/src/core/cs_xop.c +++ b/src/core/cs_xop.c @@ -150,7 +150,7 @@ class XOPBase : public Command notice_lang(s_ChanServ, u, messages[XOP_NICKS_ONLY]); return MOD_CONT; } - else if (na->status & NS_FORBIDDEN) + else if (na->HasFlag(NS_FORBIDDEN)) { notice_lang(s_ChanServ, u, NICK_X_FORBIDDEN, na->nick); return MOD_CONT; @@ -380,7 +380,7 @@ class XOPBase : public Command ChannelInfo *ci = cs_findchan(chan); - if (!(ci->flags & CI_XOP)) + if (!(ci->HasFlag(CI_XOP))) notice_lang(s_ChanServ, u, CHAN_XOP_ACCESS, s_ChanServ); else if (cmd == "ADD") return this->DoAdd(u, params, ci, level, messages); -- cgit