X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_lockserv.cpp;h=60a76c15d0e8940dc066d18559a46d720ea212b0;hb=00fa6d592ed2640fcdf74444786de555c1c3da25;hp=872678502ab45fd5175c63e8895c21205f216e22;hpb=8232baefbfbb2b3a8c059561e4d19a55344d87ac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index 872678502..60a76c15d 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * InspIRCd: (C) 2002-2009 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -37,8 +37,8 @@ public: 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->WriteToSnoMask('A', "Oper %s used LOCKSERV to temporarily close for new connections", user->nick.c_str()); /* Dont send to the network */ return CMD_LOCALONLY; } @@ -60,8 +60,8 @@ public: 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->WriteToSnoMask('A', "Oper %s used UNLOCKSERV to allow for new connections", user->nick.c_str()); /* Dont send to the network */ return CMD_LOCALONLY; } @@ -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); } };