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/ns_identify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/ns_identify.c') diff --git a/src/core/ns_identify.c b/src/core/ns_identify.c index 9ae7f3a35..bd2359ab0 100644 --- a/src/core/ns_identify.c +++ b/src/core/ns_identify.c @@ -40,9 +40,9 @@ class CommandNSIdentify : public Command else notice_lang(s_NickServ, u, NICK_NOT_REGISTERED); } - else if (na->status & NS_FORBIDDEN) + else if (na->HasFlag(NS_FORBIDDEN)) notice_lang(s_NickServ, u, NICK_X_FORBIDDEN, na->nick); - else if (na->nc->flags & NI_SUSPENDED) + else if (na->nc->HasFlag(NI_SUSPENDED)) notice_lang(s_NickServ, u, NICK_X_SUSPENDED, na->nick); /* You can now identify for other nicks without logging out first, * however you can not identify again for the group you're already @@ -94,7 +94,7 @@ class CommandNSIdentify : public Command check_memos(u); /* Clear any timers */ - if (na->nc->flags & NI_KILLPROTECT) + if (na->nc->HasFlag(NI_KILLPROTECT)) del_ns_timeout(na, TO_COLLIDE); } return MOD_CONT; -- cgit