summaryrefslogtreecommitdiff
path: root/src/modules/m_cap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_cap.cpp')
-rw-r--r--src/modules/m_cap.cpp6
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> &parameters, 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