diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 15:36:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 15:36:51 +0000 |
commit | 89749a74402913d50bd5a9140757a383d6ff175e (patch) | |
tree | 99a06946f8959356374a5aea9d5ae39f70c653cd /src/modules.cpp | |
parent | d50dddbb92036893b9188a5df9991a0d5eb80e03 (diff) |
Move fd_ref_table into class InspIRCd*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4817 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 4b2d12cab..4eed4d781 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -51,7 +51,6 @@ extern ModuleList modules; extern FactoryList factory; extern std::vector<userrec*> local_users; extern time_t TIME; -extern userrec* fd_ref_table[MAX_DESCRIPTORS]; extern user_hash clientlist; extern chan_hash chanlist; extern command_table cmdlist; @@ -460,7 +459,7 @@ userrec* Server::FindNick(const std::string &nick) userrec* Server::FindDescriptor(int socket) { - return (socket < 65536 ? fd_ref_table[socket] : NULL); + return (socket < 65536 ? ServerInstance->fd_ref_table[socket] : NULL); } chanrec* Server::FindChannel(const std::string &channel) @@ -558,7 +557,7 @@ bool Server::PseudoToUser(userrec* alive, userrec* zombie, const std::string &me log(DEBUG,"Delete local user"); } // Fix by brain - cant write the user until their fd table entry is updated - fd_ref_table[zombie->fd] = zombie; + ServerInstance->fd_ref_table[zombie->fd] = zombie; zombie->Write(":%s!%s@%s NICK %s",oldnick.c_str(),oldident.c_str(),oldhost.c_str(),zombie->nick); for (std::vector<ucrec*>::const_iterator i = zombie->chans.begin(); i != zombie->chans.end(); i++) { |