summaryrefslogtreecommitdiff
path: root/src/cmd_quit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_quit.cpp')
-rw-r--r--src/cmd_quit.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp
index b9fcc9db5..f24abbe7c 100644
--- a/src/cmd_quit.cpp
+++ b/src/cmd_quit.cpp
@@ -40,13 +40,11 @@ extern int MODCOUNT;
extern ModuleList modules;
extern FactoryList factory;
extern time_t TIME;
-extern user_hash clientlist;
-extern chan_hash chanlist;
extern std::vector<userrec*> local_users;
void cmd_quit::Handle (const char** parameters, int pcnt, userrec *user)
{
- user_hash::iterator iter = clientlist.find(user->nick);
+ user_hash::iterator iter = ServerInstance->clientlist.find(user->nick);
char reason[MAXBUF];
if (user->registered == REG_ALL)
@@ -101,9 +99,9 @@ void cmd_quit::Handle (const char** parameters, int pcnt, userrec *user)
user->CloseSocket();
}
- if (iter != clientlist.end())
+ if (iter != ServerInstance->clientlist.end())
{
- clientlist.erase(iter);
+ ServerInstance->clientlist.erase(iter);
}
if (user->registered == REG_ALL) {