#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
*/
public:
ModuleNickLock()
: locked("nick_locked", this), cmd1(this, locked), cmd2(this, locked)
+ {
+ }
+
+ void init()
{
ServerInstance->AddCommand(&cmd1);
ServerInstance->AddCommand(&cmd2);
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)