summaryrefslogtreecommitdiff
path: root/src/cmd_whois.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 01:35:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 01:35:01 +0000
commit12737ab4ad61a0d8a908c8a21594c7012e21eb3c (patch)
treebf819b3a528227d3ddf929e25e8b74d1db8ef1c7 /src/cmd_whois.cpp
parentb8383dcc9524ca832de7daf56f44fe54b19e5bdc (diff)
ConfigReader and FileReader now take InspIRCd* to their constructors
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4865 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_whois.cpp')
-rw-r--r--src/cmd_whois.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp
index 15ae9110b..2ee5e8b49 100644
--- a/src/cmd_whois.cpp
+++ b/src/cmd_whois.cpp
@@ -22,7 +22,7 @@
#include "helperfuncs.h"
#include "commands/cmd_whois.h"
-extern InspIRCd* ServerInstance;
+
extern time_t TIME;
@@ -36,7 +36,7 @@ const char* Spacify(char* n)
return x;
}
-void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, const char* nick)
+void do_whois(InspIRCd* ServerInstance, userrec* user, userrec* dest,unsigned long signon, unsigned long idle, const char* nick)
{
// bug found by phidjit - were able to whois an incomplete connection if it had sent a NICK or USER
if (dest->registered == REG_ALL)
@@ -106,7 +106,7 @@ void cmd_whois::Handle (const char** parameters, int pcnt, userrec *user)
dest = ServerInstance->FindNick(parameters[0]);
if (dest)
{
- do_whois(user,dest,0,0,parameters[0]);
+ do_whois(this->ServerInstance, user,dest,0,0,parameters[0]);
}
else
{