summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 12:07:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 12:07:25 +0000
commit9d37575438cd4b907396e89fb174a7e519508be9 (patch)
tree7ffe167370de0f2b1b248cd7d981c6feedbaa821
parenteb61271c43f563277820ee5d86655113607571fa (diff)
More defines moved
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2525 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/modules.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index 5e985b8bb..f52c1653b 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -101,6 +101,12 @@ typedef std::deque<userrec*> chanuserlist;
#define FD_MAGIC_NUMBER -42
+// useful macros
+
+#define IS_LOCAL(x) (x->fd > -1)
+#define IS_REMOTE(x) (x->fd < 0)
+#define IS_MODULE_CREATED(x) (x->fd == FD_MAGIC_NUMBER)
+
// flags for use with WriteMode
#define WM_AND 1