aboutsummaryrefslogtreecommitdiff
path: root/src/cmd_whois.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-08-11 09:23:46 +0000
committerGravatar brain2006-08-11 09:23:46 +0000
commit76ebc88ccd6fef0bf2d97b607829fb3466e273af (patch)
tree6b02e7979ce1c4bf75cfc6e59d9de534ccf22827 /src/cmd_whois.cpp
parentNew API update (diff)
extern time_t TIME -> InspIRCd::Time()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4873 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_whois.cpp')
-rw-r--r--src/cmd_whois.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp
index 2ee5e8b49..c863d7998 100644
--- a/src/cmd_whois.cpp
+++ b/src/cmd_whois.cpp
@@ -22,10 +22,6 @@
#include "helperfuncs.h"
#include "commands/cmd_whois.h"
-
-
-extern time_t TIME;
-
const char* Spacify(char* n)
{
static char x[MAXBUF];
@@ -81,7 +77,7 @@ void do_whois(InspIRCd* ServerInstance, userrec* user, userrec* dest,unsigned lo
if (!strcasecmp(user->server,dest->server))
{
// idle time and signon line can only be sent if youre on the same server (according to RFC)
- user->WriteServ("317 %s %s %d %d :seconds idle, signon time",user->nick, dest->nick, abs((dest->idle_lastmsg)-TIME), dest->signon);
+ user->WriteServ("317 %s %s %d %d :seconds idle, signon time",user->nick, dest->nick, abs((dest->idle_lastmsg)-ServerInstance->Time()), dest->signon);
}
else
{