X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_topic.cpp;h=fd9f192ae4cdf462a9afa682ea9bb31ef76c533d;hb=76ebc88ccd6fef0bf2d97b607829fb3466e273af;hp=adb460c80f727b455ebc57ce1e1356a41117bad2;hpb=fd2eb26472bcc0b7b144f40523ff820cba82f574;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_topic.cpp b/src/cmd_topic.cpp index adb460c80..fd9f192ae 100644 --- a/src/cmd_topic.cpp +++ b/src/cmd_topic.cpp @@ -22,12 +22,6 @@ #include "commands/cmd_topic.h" #include "helperfuncs.h" -extern InspIRCd* ServerInstance; -extern int MODCOUNT; -extern time_t TIME; -extern ModuleList modules; -extern FactoryList factory; - void cmd_topic::Handle (const char** parameters, int pcnt, userrec *user) { chanrec* Ptr; @@ -89,7 +83,7 @@ void cmd_topic::Handle (const char** parameters, int pcnt, userrec *user) strlcpy(Ptr->topic,topic,MAXTOPIC-1); strlcpy(Ptr->setby,user->nick,NICKMAX-1); - Ptr->topicset = TIME; + Ptr->topicset = ServerInstance->Time(); Ptr->WriteChannel(user, "TOPIC %s :%s", Ptr->name, Ptr->topic); if (IS_LOCAL(user)) {