diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 17:52:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 17:52:10 +0000 |
commit | 2591562ada4cb1f866e5d1c98340fb19332b3844 (patch) | |
tree | 1cf18676c1851c39322d20fa208c0221e23ba6ac /src/cmd_quit.cpp | |
parent | 1cbf29e3cd070c12437a657b47fc433008b2c74d (diff) |
Move tons more stuff into class InspIRCd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4819 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_quit.cpp')
-rw-r--r-- | src/cmd_quit.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp index f24abbe7c..feaab0fe4 100644 --- a/src/cmd_quit.cpp +++ b/src/cmd_quit.cpp @@ -40,7 +40,6 @@ extern int MODCOUNT; extern ModuleList modules; extern FactoryList factory; extern time_t TIME; -extern std::vector<userrec*> local_users; void cmd_quit::Handle (const char** parameters, int pcnt, userrec *user) { @@ -91,10 +90,10 @@ void cmd_quit::Handle (const char** parameters, int pcnt, userrec *user) if (user->fd > -1) { ServerInstance->SE->DelFd(user->fd); - if (find(local_users.begin(),local_users.end(),user) != local_users.end()) + if (find(ServerInstance->local_users.begin(),ServerInstance->local_users.end(),user) != ServerInstance->local_users.end()) { log(DEBUG,"Delete local user"); - local_users.erase(find(local_users.begin(),local_users.end(),user)); + ServerInstance->local_users.erase(find(ServerInstance->local_users.begin(),ServerInstance->local_users.end(),user)); } user->CloseSocket(); } |