X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_lockserv.cpp;h=2db01b99ae2966ec75d13c887bd84f26a9cb2e64;hb=a032cd90ad5582914759e226085efee5aae1a1ef;hp=068573e0dccc2cedbca3f3728199cbbaeb1674d8;hpb=d23c030c9a8fd58807438245a004e4aa5b7288ba;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index 068573e0d..2db01b99a 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -42,7 +42,7 @@ class CommandLockserv : public Command flags_needed = 'o'; } - CmdResult Handle (const std::vector ¶meters, User *user) + CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE { if (!locked.empty()) { @@ -67,7 +67,7 @@ class CommandUnlockserv : public Command flags_needed = 'o'; } - CmdResult Handle (const std::vector ¶meters, User *user) + CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE { if (locked.empty()) { @@ -100,6 +100,12 @@ class ModuleLockserv : public Module locked.clear(); } + void OnModuleRehash(User* user, const std::string& param) CXX11_OVERRIDE + { + if (irc::equals(param, "lockserv") && !locked.empty()) + locked.clear(); + } + ModResult OnUserRegister(LocalUser* user) CXX11_OVERRIDE { if (!locked.empty())