From 9d37575438cd4b907396e89fb174a7e519508be9 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 16 Dec 2005 12:07:25 +0000 Subject: More defines moved git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2525 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/modules.h') 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 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 -- cgit v1.2.3