From 9296aee7bc95c0fb2a0d00f76b908eba99e730af Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 28 Jul 2006 11:39:16 +0000 Subject: Change some if fd > -1 to IS_LOCAL macro git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4568 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 02a23c0ac..39294cbb3 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -720,7 +720,7 @@ void WriteCommon(userrec *u, char* text, ...) for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) { - if ((i->second->fd > -1) && (already_sent[i->second->fd] != uniq_id)) + if ((IS_LOCAL(i->second)) && (already_sent[i->second->fd] != uniq_id)) { already_sent[i->second->fd] = uniq_id; WriteFrom_NoFormat(i->second->fd,u,textbuffer); @@ -767,7 +767,7 @@ void WriteCommon_NoFormat(userrec *u, const char* text) for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) { - if ((i->second->fd > -1) && (already_sent[i->second->fd] != uniq_id)) + if ((IS_LOCAL(i->second)) && (already_sent[i->second->fd] != uniq_id)) { already_sent[i->second->fd] = uniq_id; WriteFrom_NoFormat(i->second->fd,u,text); @@ -869,7 +869,7 @@ void WriteCommonExcept(userrec *u, char* text, ...) { if (u != i->second) { - if ((i->second->fd > -1) && (already_sent[i->second->fd] != uniq_id)) + if ((IS_LOCAL(i->second)) && (already_sent[i->second->fd] != uniq_id)) { already_sent[i->second->fd] = uniq_id; @@ -912,7 +912,7 @@ void WriteCommonExcept_NoFormat(userrec *u, const char* text) { if (u != i->second) { - if ((i->second->fd > -1) && (already_sent[i->second->fd] != uniq_id)) + if ((IS_LOCAL(i->second)) && (already_sent[i->second->fd] != uniq_id)) { already_sent[i->second->fd] = uniq_id; WriteFrom_NoFormat(i->second->fd,u,text); -- cgit v1.2.3