summaryrefslogtreecommitdiff
path: root/include/inspircd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/inspircd.h')
-rw-r--r--include/inspircd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 82900e441..a418cd305 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -67,6 +67,10 @@
#define TYPE_CHANNEL 2
#define TYPE_SERVER 3
+#define IS_LOCAL(x) (x->fd > -1)
+#define IS_REMOTE(x) (x->fd < 0)
+#define IS_MODULE_CREATED(x) (x->fd == FD_MAGIC_NUMBER)
+
typedef std::deque<std::string> file_cache;
typedef void (handlerfunc) (char**, int, userrec*);