From 7cb27dabe695505d2eb7b942c4fbf518dda8e6b3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 26 Oct 2020 23:40:24 +0000 Subject: Convert CmdResult to an 8-bit strongly typed enum. --- src/command_parse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index b9ebd7ea3..95d64bc5c 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -127,7 +127,7 @@ CmdResult CommandParser::CallHandler(const std::string& commandname, const Comma if (n != cmdlist.end()) { if ((!parameters.empty()) && (parameters.back().empty()) && (!n->second->allow_empty_last_param)) - return CMD_INVALID; + return CmdResult::INVALID; if (parameters.size() >= n->second->min_params) { @@ -166,7 +166,7 @@ CmdResult CommandParser::CallHandler(const std::string& commandname, const Comma } } } - return CMD_INVALID; + return CmdResult::INVALID; } void CommandParser::ProcessCommand(LocalUser* user, std::string& command, CommandBase::Params& command_p) -- cgit v1.3.1-10-gc9f91