summaryrefslogtreecommitdiff
path: root/src/cmd_kill.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_kill.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_kill.cpp')
-rw-r--r--src/cmd_kill.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp
index 82a1f088d..a7c710968 100644
--- a/src/cmd_kill.cpp
+++ b/src/cmd_kill.cpp
@@ -28,7 +28,6 @@ extern InspIRCd* ServerInstance;
extern int MODCOUNT;
extern std::vector<Module*> modules;
extern std::vector<ircd_module*> factory;
-extern user_hash clientlist;
void cmd_kill::Handle (const char** parameters, int pcnt, userrec *user)
{
@@ -57,12 +56,12 @@ void cmd_kill::Handle (const char** parameters, int pcnt, userrec *user)
u->WriteCommonExcept("QUIT :%s", killreason);
FOREACH_MOD(I_OnRemoteKill, OnRemoteKill(user, u, killreason));
- user_hash::iterator iter = clientlist.find(u->nick);
+ user_hash::iterator iter = ServerInstance->clientlist.find(u->nick);
- if (iter != clientlist.end())
+ if (iter != ServerInstance->clientlist.end())
{
log(DEBUG,"deleting user hash value %d", iter->second);
- clientlist.erase(iter);
+ ServerInstance->clientlist.erase(iter);
}
if (u->registered == REG_ALL)