X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_whois.cpp;h=c863d799850868d3991dc3d9d11490139b72a55f;hb=76ebc88ccd6fef0bf2d97b607829fb3466e273af;hp=2ee5e8b4925d4788c25768423a81963b793d58da;hpb=12737ab4ad61a0d8a908c8a21594c7012e21eb3c;p=user%2Fhenk%2Fcode%2Finspircd.git 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 {