#include "mode.h"
#include "xline.h"
#include "inspstring.h"
-#include "helperfuncs.h"
+
#include "hashcomp.h"
#include "socketengine.h"
#include "commands/cmd_quit.h"
-extern InspIRCd* ServerInstance;
-extern time_t TIME;
-
void cmd_quit::Handle (const char** parameters, int pcnt, userrec *user)
{
user_hash::iterator iter = ServerInstance->clientlist.find(user->nick);
ServerInstance->SE->DelFd(user->fd);
if (find(ServerInstance->local_users.begin(),ServerInstance->local_users.end(),user) != ServerInstance->local_users.end())
{
- log(DEBUG,"Delete local user");
+ ServerInstance->Log(DEBUG,"Delete local user");
ServerInstance->local_users.erase(find(ServerInstance->local_users.begin(),ServerInstance->local_users.end(),user));
}
user->CloseSocket();