From 86f5c9f03159062160cb8d2bd2b298afd362dd8d Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Fri, 9 Aug 2013 01:27:02 +0200 Subject: [PATCH] Make registered server commands case-insensitive (bug 5625, r=Nextra) Former-commit-id: 44e5f42691a0deabd3ba612d9587a1dc139f6763 --- amxmodx/CCmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/CCmd.h b/amxmodx/CCmd.h index c0331453..4034c15c 100755 --- a/amxmodx/CCmd.h +++ b/amxmodx/CCmd.h @@ -76,7 +76,7 @@ public: inline const char* getCmdInfo() { return info.c_str(); } inline const char* getCmdLine() { return commandline.c_str(); } inline bool matchCommandLine(const char* cmd, const char* arg) { return (!stricmp(command.c_str() + prefix, cmd + prefix) && (argument.empty() || !stricmp(argument.c_str(), arg))); } - inline bool matchCommand(const char* cmd) { return (!strcmp(command.c_str(), cmd)); } + inline bool matchCommand(const char* cmd) { return (!stricmp(command.c_str(), cmd)); } inline int getFunction() const { return function; } inline bool gotAccess(int f) const { return (!flags || ((flags & f) != 0)); } inline CPluginMngr::CPlugin* getPlugin() { return plugin; }