From 6dccb650743fdfa799fc4bc877c7bc9e2692c287 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 31 Mar 2007 20:45:45 +0000 Subject: Add macros IS_OPER() and IS_AWAY() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6720 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/modules.h b/include/modules.h index 16495dad6..c1e4bd239 100644 --- a/include/modules.h +++ b/include/modules.h @@ -191,6 +191,8 @@ typedef std::map > interfacelist; #define IS_LOCAL(x) ((x->GetFd() > -1) && (x->GetFd() <= MAX_DESCRIPTORS)) #define IS_REMOTE(x) (x->GetFd() < 0) #define IS_MODULE_CREATED(x) (x->GetFd() == FD_MAGIC_NUMBER) +#define IS_OPER(x) (*x->oper) +#define IS_AWAY(x) (*x->awaymsg) /** 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