diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-31 20:45:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-31 20:45:45 +0000 |
commit | 6dccb650743fdfa799fc4bc877c7bc9e2692c287 (patch) | |
tree | e3fd82ff6e710e006389572bf6a89a05296ad58d /include/modules.h | |
parent | a85c2d262d1ab3bf5745a146d905705d0a0b6983 (diff) |
Add macros IS_OPER() and IS_AWAY()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6720 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<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 |