]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_alltime.cpp
Socket engine tweaks to fix a glitch, and improvements to new m_ident
[user/henk/code/inspircd.git] / src / modules / m_alltime.cpp
index 6fc37708391f22a319541752bb9d844a096cd113..1b48c237f9c36bae06a090f613caa59ffddeb6c8 100644 (file)
  */
 
 #include "inspircd.h"
-#include "modules.h"
 
 /* $ModDesc: Display timestamps from all servers connected to the network */
 
-class cmd_alltime : public command_t
+class cmd_alltime : public Command
 {
  public:
-       cmd_alltime(InspIRCd *Instance) : command_t(Instance, "ALLTIME", 'o', 0)
+       cmd_alltime(InspIRCd *Instance) : Command(Instance, "ALLTIME", 'o', 0)
        {
                this->source = "m_alltime.so";
                syntax.clear();
+               translation.push_back(TR_END);
        }
 
-       CmdResult Handle(const char **parameters, int pcnt, userrec *user)
+       CmdResult Handle(const char **parameters, int pcnt, User *user)
        {
                char fmtdate[64];
                char fmtdate2[64];
@@ -80,4 +80,4 @@ class Modulealltime : public Module
        
 };
 
-MODULE_INIT(Modulealltime);
+MODULE_INIT(Modulealltime)