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())
Version GetVersion() CXX11_OVERRIDE
{
- return Version("Allows locking of the server to stop all incoming connections until unlocked again", VF_VENDOR);
+ return Version("Provides the LOCKSERV and UNLOCKSERV commands to lock the server and block all incoming connections until unlocked again", VF_VENDOR);
}
};