X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_lockserv.cpp;h=100b7864b70803a5521fac51ae2c1e69a0b5295b;hb=95c1fb9bdd5f93cf4f8306a7b8ae9ca098aade1a;hp=7fa9d4c10f4b3154dab0fcb61a39b373ddabdf54;hpb=069a2ef21425007d092342c8c11ec28da2f410d7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index 7fa9d4c10..100b7864b 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -33,7 +33,7 @@ public: CmdResult Handle (const std::vector ¶meters, User *user) { locked = true; - user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server); + user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server.c_str()); ServerInstance->SNO->WriteGlobalSno('a', "Oper %s used LOCKSERV to temporarily close for new connections", user->nick.c_str()); /* Dont send to the network */ return CMD_SUCCESS; @@ -54,7 +54,7 @@ public: CmdResult Handle (const std::vector ¶meters, User *user) { locked = false; - user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server); + user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server.c_str()); ServerInstance->SNO->WriteGlobalSno('a', "Oper %s used UNLOCKSERV to allow for new connections", user->nick.c_str()); /* Dont send to the network */ return CMD_SUCCESS; @@ -74,7 +74,7 @@ private: } public: - ModuleLockserv(InspIRCd* Me) : lockcommand(this, locked), unlockcommand(this, locked) + ModuleLockserv() : lockcommand(this, locked), unlockcommand(this, locked) { ResetLocked(); ServerInstance->AddCommand(&lockcommand); @@ -110,7 +110,7 @@ public: virtual Version GetVersion() { - return Version("$Id$", VF_VENDOR, API_VERSION); + return Version("Allows locking of the server to stop all incoming connections till unlocked again", VF_VENDOR); } };