X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_lockserv.cpp;h=f25ba0553346baa4180eb912e8506880c206bcee;hb=819147178db00008a215670992d0f532dd57f9e5;hp=f1d6e764fcd66d1cae21295fa36cca6b7351ff20;hpb=d7a0cd3db1e8b64a6f706f1831e645ad69aa7927;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index f1d6e764f..f25ba0553 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -34,11 +34,11 @@ public: syntax.clear(); } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector ¶meters, User *user) { locked = true; - user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick, user->server); - ServerInstance->SNO->WriteToSnoMask('A', "Oper %s used LOCKSERV to temporarily close for new connections", user->nick); + user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick.c_str(), user->server); + 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_LOCALONLY; } @@ -57,11 +57,11 @@ public: syntax.clear(); } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector ¶meters, User *user) { locked = false; - user->WriteNumeric(989, "%s %s :Open for new connections", user->nick, user->server); - ServerInstance->SNO->WriteToSnoMask('A', "Oper %s used UNLOCKSERV to allow for new connections", user->nick); + user->WriteNumeric(989, "%s %s :Open for new connections", user->nick.c_str(), user->server); + ServerInstance->SNO->WriteGlobalSno('a', "Oper %s used UNLOCKSERV to allow for new connections", user->nick.c_str()); /* Dont send to the network */ return CMD_LOCALONLY; } @@ -97,7 +97,7 @@ public: } - virtual void OnRehash(User* user, const std::string ¶meter) + virtual void OnRehash(User* user) { ResetLocked(); } @@ -119,7 +119,7 @@ public: virtual Version GetVersion() { - return Version(1, 0, 0, 1, VF_VENDOR, API_VERSION); + return Version("$Id$", VF_VENDOR, API_VERSION); } };