summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/command_parse.h4
-rw-r--r--src/command_parse.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index 40c3425fb..682489ad5 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -38,6 +38,10 @@ class CommandParser : public classbase
*/
InspIRCd* ServerInstance;
+ /** Parameter buffer
+ */
+ std::vector<std::string> para;
+
/** Process a parameter string into a list of items
* @param command_p The output list of items
* @param parameters The input string
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 5cc85a2a3..a158ff6a3 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -315,7 +315,6 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd)
{
const char *command_p[127];
int items = 0;
- std::string para[127];
irc::tokenstream tokens(cmd);
std::string command = tokens.GetToken();
@@ -477,6 +476,7 @@ bool CommandParser::CreateCommand(command_t *f, void* so_handle)
CommandParser::CommandParser(InspIRCd* Instance) : ServerInstance(Instance)
{
+ para.resize(128);
this->SetupCommandTable();
}