X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_nicklock.cpp;h=924ab8d81e1361d68639fcd16bce34e5860b5a29;hb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;hp=e088c12daba9395d280a3ed0728654daa9cca83c;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp index e088c12da..924ab8d81 100644 --- a/src/modules/m_nicklock.cpp +++ b/src/modules/m_nicklock.cpp @@ -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)