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_release.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/ns_release.c') diff --git a/src/core/ns_release.c b/src/core/ns_release.c index 75a508aa3..b1c040007 100644 --- a/src/core/ns_release.c +++ b/src/core/ns_release.c @@ -31,11 +31,11 @@ class CommandNSRelease : public Command if (!(na = findnick(nick))) notice_lang(s_NickServ, u, NICK_X_NOT_REGISTERED, nick); - 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); - else if (!(na->status & NS_KILL_HELD)) + else if (!(na->HasFlag(NS_KILL_HELD))) notice_lang(s_NickServ, u, NICK_RELEASE_NOT_HELD, nick); else if (pass) { @@ -57,7 +57,7 @@ class CommandNSRelease : public Command } else { - if (u->nc == na->nc || (!(na->nc->flags & NI_SECURE) && is_on_access(u, na->nc))) + if (u->nc == na->nc || (!(na->nc->HasFlag(NI_SECURE)) && is_on_access(u, na->nc))) { release(na, 0); notice_lang(s_NickServ, u, NICK_RELEASED); -- cgit