]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sethost.cpp
Automatically attach modules to events
[user/henk/code/inspircd.git] / src / modules / m_sethost.cpp
index e3e02fbe80f2d40de20d102ea1c169d99b63ba1b..636f2ff6b31ebf2a5702c932ba3f191da829d7e5 100644 (file)
@@ -21,8 +21,6 @@
 
 #include "inspircd.h"
 
-/* $ModDesc: Provides support for the SETHOST command */
-
 /** Handle /SETHOST
  */
 class CommandSethost : public Command
@@ -34,7 +32,6 @@ class CommandSethost : public Command
        {
                allow_empty_last_param = false;
                flags_needed = 'o'; syntax = "<new-hostname>";
-               TRANSLATE2(TR_TEXT, TR_END);
        }
 
        CmdResult Handle (const std::vector<std::string>& parameters, User *user)
@@ -81,8 +78,6 @@ class ModuleSetHost : public Module
        {
                OnRehash(NULL);
                ServerInstance->Modules->AddService(cmd);
-               Implementation eventlist[] = { I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        void OnRehash(User* user) CXX11_OVERRIDE