From c9447a9088997d2309fd2a46fb720115337c3706 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 13 Dec 2005 23:17:22 +0000 Subject: #define IS_LOCAL(x) (x->fd > -1) #define IS_REMOTE(x) (x->fd < 0) #define IS_MODULE_CREATED(x) (x->fd == FD_MAGIC_NUMBER) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2386 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 file_cache; typedef void (handlerfunc) (char**, int, userrec*); -- cgit v1.2.3