diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 00:21:24 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 00:21:24 +0000 |
commit | 8232baefbfbb2b3a8c059561e4d19a55344d87ac (patch) | |
tree | 6350c2bb0219c5ead26387e18c5a71b41dc76a60 /src | |
parent | 5f6955a43ee286925d9f79affcb2fdd5e9306fe6 (diff) |
and now aquanight, you can compile from m_m*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9625 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_knock.cpp | 10 | ||||
-rw-r--r-- | src/modules/m_lockserv.cpp | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index 82b76c02b..6ec05602d 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -27,14 +27,14 @@ class CommandKnock : public Command TRANSLATE3(TR_TEXT, TR_TEXT, TR_END); } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { Channel* c = ServerInstance->FindChan(parameters[0]); std::string line; if (!c) { - user->WriteNumeric(401, "%s %s :No such channel",user->nick, parameters[0]); + user->WriteNumeric(401, "%s %s :No such channel",user->nick, parameters[0].c_str()); return CMD_FAILURE; } @@ -56,11 +56,11 @@ class CommandKnock : public Command return CMD_FAILURE; } - for (int i = 1; i < pcnt - 1; i++) + for (int i = 1; i < (int)parameters.size() - 1; i++) { - line = line + std::string(parameters[i]) + " "; + line = line + parameters[i] + " "; } - line = line + std::string(parameters[pcnt-1]); + line = line + parameters[parameters.size()-1]; c->WriteChannelWithServ((char*)ServerInstance->Config->ServerName, "NOTICE %s :User %s is KNOCKing on %s (%s)", c->name, user->nick, c->name, line.c_str()); user->WriteServ("NOTICE %s :KNOCKing on %s",user->nick,c->name); diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index f1d6e764f..872678502 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -34,7 +34,7 @@ public: syntax.clear(); } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { locked = true; user->WriteNumeric(988, "%s %s :Closed for new connections", user->nick, user->server); @@ -57,7 +57,7 @@ public: syntax.clear(); } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { locked = false; user->WriteNumeric(989, "%s %s :Open for new connections", user->nick, user->server); |