]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_whowas.cpp
auto-set +s when +n is set (as +n requires +s) - allow +n to be 'set twice' allowing...
[user/henk/code/inspircd.git] / src / cmd_whowas.cpp
index b300782c55c1f1dff4135fbd2a17c8c694dd7959..fe0d8c90d68f966acb97106ab7f4df634621d51e 100644 (file)
 #include "configreader.h"
 #include "users.h"
 #include "commands.h"
-#include "helperfuncs.h"
-#include "commands/cmd_whowas.h"
-
 
-extern irc::whowas::whowas_users whowas;
+#include "commands/cmd_whowas.h"
 
 void cmd_whowas::Handle (const char** parameters, int pcnt, userrec* user)
 {
-       irc::whowas::whowas_users::iterator i = whowas.find(parameters[0]);
+       irc::whowas::whowas_users::iterator i = ServerInstance->whowas.find(parameters[0]);
 
-       if (i == whowas.end())
+       if (i == ServerInstance->whowas.end())
        {
                user->WriteServ("406 %s %s :There was no such nickname",user->nick,parameters[0]);
        }