]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_time.cpp
More tweaks
[user/henk/code/inspircd.git] / src / cmd_time.cpp
index f87f398c841a7327d271ac51d557564e940872d1..a4ae310d1d8f3a3c205fdce12afc75371c5836f3 100644 (file)
 #include "configreader.h"
 #include "users.h"
 #include "commands.h"
-#include "helperfuncs.h"
-#include "commands/cmd_time.h"
 
-extern InspIRCd* ServerInstance;
-extern time_t TIME;
+#include "commands/cmd_time.h"
 
 void cmd_time::Handle (const char** parameters, int pcnt, userrec *user)
 {
        struct tm* timeinfo;
+       time_t local = ServerInstance->Time();
 
-       timeinfo = localtime(&TIME);
+       timeinfo = localtime(&local);
 
        char tms[26];
        snprintf(tms,26,"%s",asctime(timeinfo));