]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Add macros IS_OPER() and IS_AWAY()
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 31 Mar 2007 20:45:45 +0000 (20:45 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 31 Mar 2007 20:45:45 +0000 (20:45 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6720 e03df62e-2008-0410-955e-edbf42e46eb7

include/modules.h

index 16495dad6f992b565da24e895e0f0d0f63704cfd..c1e4bd239425814929c3f5f99e145c92f6121fd1 100644 (file)
@@ -191,6 +191,8 @@ typedef std::map<std::string, std::pair<int, modulelist> > 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