summaryrefslogtreecommitdiff
path: root/src/cmd_kill.cpp
diff options
context:
space:
mode:
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)