From 5865b900cd950755bee1f7001552951d99529d4d Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 19 May 2008 18:29:30 +0000 Subject: Fix logic being backwards (so every user was always away and an oper, except when they weren't an oper, and weren't away ...) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9767 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 79c12a9cd..585bd98d9 100644 --- a/include/modules.h +++ b/include/modules.h @@ -238,9 +238,9 @@ do { \ /** Is a module created user */ #define IS_MODULE_CREATED(x) (x->GetFd() == FD_MAGIC_NUMBER) /** Is an oper */ -#define IS_OPER(x) (x->oper.empty()) +#define IS_OPER(x) (!x->oper.empty()) /** Is away */ -#define IS_AWAY(x) (x->awaymsg.empty()) +#define IS_AWAY(x) (!x->awaymsg.empty()) /** Holds a module's Version information. * The four members (set by the constructor only) indicate details as to the version number -- cgit v1.2.3