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 --- src/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 1c4f10470..2c351868c 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -639,7 +639,7 @@ void handle_privmsg(char **parameters, int pcnt, userrec *user) } parameters[1] = (char*)temp.c_str(); - if (dest->server > -1) + if (dest->fd > -1) { // direct write, same server WriteTo(user, dest, "PRIVMSG %s :%s", dest->nick, parameters[1]); -- cgit v1.2.3