X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_lockserv.cpp;h=b50ca24c0030455ba1c8256e39ebd14429c5d138;hb=80e81e3b81b779901fd9d67f8ae030ee30c0bcec;hp=45a0095d79e646fb67e74a2465a9f4f693253ca3;hpb=384ef31bc01e4a1a2e59d082c9066002410ba54a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index 45a0095d7..b50ca24c0 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -1,8 +1,13 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2013, 2016-2018 Sadie Powell + * Copyright (C) 2012-2013 Attila Molnar + * Copyright (C) 2012, 2019 Robby + * Copyright (C) 2010 Craig Edwards + * Copyright (C) 2009-2010 Daniel De Graaf + * Copyright (C) 2007-2008 Robin Burchell * Copyright (C) 2006-2007 Dennis Friis - * Copyright (C) 2007 Robin Burchell * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -100,6 +105,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()) @@ -117,7 +128,7 @@ class ModuleLockserv : public Module Version GetVersion() CXX11_OVERRIDE { - return Version("Allows locking of the server to stop all incoming connections until unlocked again", VF_VENDOR); + return Version("Adds the /LOCKSERV and /UNLOCKSERV commands which allows server operators to control whether users can connect to the local server.", VF_VENDOR); } };