summaryrefslogtreecommitdiff
path: root/src/cmd_quit.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 16:35:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 16:35:24 +0000
commit1cbf29e3cd070c12437a657b47fc433008b2c74d (patch)
tree22b7a435ffd8bfa7dd97f2457b73df564753eddc /src/cmd_quit.cpp
parent89749a74402913d50bd5a9140757a383d6ff175e (diff)
Move clientlist and chanlist into InspIRCd*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4818 e03df62e-2008-0410-955e-edbf42e46eb7
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) {