X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_lockserv.cpp;h=903427d2254e5daa0da346739b639372d3c01142;hb=39897f56f5f84d8d4c8903fb46a03c2fdcf733ec;hp=dfda9aaf75fcad282af264fffefee285b2a6d1b8;hpb=449bbb6e04f73685341fc22acb4b579794bd56ac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index dfda9aaf7..903427d22 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -34,11 +34,11 @@ public: syntax.clear(); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const std::vector ¶meters, User *user) { locked = true; - user->WriteServ("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; } @@ -57,11 +57,11 @@ public: syntax.clear(); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const std::vector ¶meters, User *user) { locked = false; - user->WriteServ("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; } @@ -106,7 +106,7 @@ public: { if (locked) { - User::QuitUser(ServerInstance, user, "Server is temporarily closed. Please try again later."); + ServerInstance->Users->QuitUser(user, "Server is temporarily closed. Please try again later."); return 1; } return 0; @@ -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); } };