diff options
Diffstat (limited to 'src/cmd_topic.cpp')
-rw-r--r-- | src/cmd_topic.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cmd_topic.cpp b/src/cmd_topic.cpp index dccdfcb3f..fd9f192ae 100644 --- a/src/cmd_topic.cpp +++ b/src/cmd_topic.cpp @@ -22,9 +22,6 @@ #include "commands/cmd_topic.h" #include "helperfuncs.h" - -extern time_t TIME; - void cmd_topic::Handle (const char** parameters, int pcnt, userrec *user) { chanrec* Ptr; @@ -86,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)) { |