diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 23:28:57 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-04 23:28:57 +0000 |
commit | c2d1f2cdafb0a38446844f6bd3d683e8636e37b4 (patch) | |
tree | a9427eff9698f3b4921018de660c70b5ed40bba5 /src/modules/m_cap.cpp | |
parent | 222e912fc3e4a09bba3d9aeef815b6c364c5c71c (diff) |
Convert a whole bunch more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9620 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cap.cpp')
-rw-r--r-- | src/modules/m_cap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 63d1d685f..986e40713 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -41,9 +41,9 @@ class CommandCAP : public Command this->source = "m_cap.so"; } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector<std::string> ¶meters, User *user) { - irc::string subcommand = parameters[0]; + irc::string subcommand = parameters[0].c_str(); if (subcommand == "REQ") { @@ -53,7 +53,7 @@ class CommandCAP : public Command Data.user = user; Data.creator = this->Creator; - if (pcnt < 2) + if (parameters.size() < 2) return CMD_FAILURE; // tokenize the input into a nice list of requested caps |