diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 11:39:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 11:39:16 +0000 |
commit | 9296aee7bc95c0fb2a0d00f76b908eba99e730af (patch) | |
tree | 33b329a404a4a20d586a6790a104e5943785eda4 | |
parent | e2495e974897eeef3e573daf900134e92106df11 (diff) |
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
-rw-r--r-- | src/helperfuncs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |