diff options
| author | 2006-08-18 01:08:14 +0000 | |
|---|---|---|
| committer | 2006-08-18 01:08:14 +0000 | |
| commit | e381b06561228aaea752deda20a62c6dc99a560e (patch) | |
| tree | 2119fe8bc8895597261935f389004e3c6bafe6a8 /src/channels.cpp | |
| parent | Forward port of /list pattern matching, reported by Stskeeps (diff) | |
EventHandler class, an abstraction for raw i/o
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4941 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 29373e906..a89b9b2c4 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -222,7 +222,7 @@ chanrec* chanrec::JoinUser(InspIRCd* Instance, userrec *user, const char* cn, bo if (!Ptr) { - if (user->fd > -1) + if (IS_LOCAL(user)) { MOD_RESULT = 0; FOREACH_RESULT_I(Instance,I_OnUserPreJoin,OnUserPreJoin(user,NULL,cname)); @@ -654,7 +654,7 @@ void chanrec::WriteChannel(userrec* user, const std::string &text) for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) { - if (i->second->fd != FD_MAGIC_NUMBER) + if (IS_LOCAL(i->second)) user->WriteTo(i->second,text); } } |
