aboutsummaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-08-25 20:24:33 -0400
committerGravatar Daniel De Graaf2010-08-25 20:24:33 -0400
commit097abb965f40ff4d406462fb5bfeb84683200d17 (patch)
treebdb4fda53ea065a24076e3d58656f12192a1d1eb /src/command_parse.cpp
parentAdd umode +n - never autoop this user unless /UP is used (diff)
Add CrashState for tracing basic call state when the stack is corrupt
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index c6afe8f86..2c1827841 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -168,8 +168,9 @@ CmdResult CommandParser::CallHandler(const std::string &commandname, const std::
return CMD_INVALID;
}
-bool CommandParser::ProcessCommand(LocalUser *user, std::string &cmd)
+bool CommandParser::ProcessCommand(LocalUser *user, const std::string &cmd)
{
+ CrashState cmd_tracer(HERE_STR, cmd.c_str());
std::vector<std::string> command_p;
irc::tokenstream tokens(cmd);
std::string command, token;