]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nicklock.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_nicklock.cpp
index e088c12daba9395d280a3ed0728654daa9cca83c..924ab8d81e1361d68639fcd16bce34e5860b5a29 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "inspircd.h"
 
-/* $ModDesc: Provides the NICKLOCK command, allows an oper to chage a users nick and lock them to it until they quit */
+/* $ModDesc: Provides the NICKLOCK command, allows an oper to change a users nick and lock them to it until they quit */
 
 /** Handle /NICKLOCK
  */
@@ -148,6 +148,10 @@ class ModuleNickLock : public Module
  public:
        ModuleNickLock()
                : locked("nick_locked", this), cmd1(this, locked), cmd2(this, locked)
+       {
+       }
+
+       void init()
        {
                ServerInstance->AddCommand(&cmd1);
                ServerInstance->AddCommand(&cmd2);
@@ -161,7 +165,7 @@ class ModuleNickLock : public Module
 
        Version GetVersion()
        {
-               return Version("Provides the NICKLOCK command, allows an oper to chage a users nick and lock them to it until they quit", VF_OPTCOMMON | VF_VENDOR);
+               return Version("Provides the NICKLOCK command, allows an oper to change a users nick and lock them to it until they quit", VF_OPTCOMMON | VF_VENDOR);
        }
 
        ModResult OnUserPreNick(User* user, const std::string &newnick)