CommandNicklock cmd1;
CommandNickunlock cmd2;
public:
- ModuleNickLock(InspIRCd* Me)
- : Module(Me), locked("nick_locked", this), cmd1(this, locked), cmd2(this, locked)
+ ModuleNickLock()
+ : locked("nick_locked", this), cmd1(this, locked), cmd2(this, locked)
{
ServerInstance->AddCommand(&cmd1);
ServerInstance->AddCommand(&cmd2);
- Extensible::Register(&locked);
+ ServerInstance->Extensions.Register(&locked);
ServerInstance->Modules->Attach(I_OnUserPreNick, this);
}
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_COMMON | VF_VENDOR, API_VERSION);
+ return Version("Provides the NICKLOCK command, allows an oper to chage a users nick and lock them to it until they quit", VF_COMMON | VF_VENDOR);
}
if (isdigit(newnick[0])) /* Allow a switch to a UID */
return MOD_RES_PASSTHRU;
- if (User::NICKForced.get(user)) /* Allow forced nick changes */
+ if (ServerInstance->NICKForced.get(user)) /* Allow forced nick changes */
return MOD_RES_PASSTHRU;
if (locked.get(user))