From 3f1226e50421b4b9dcc33e9d31c99697628fa11f Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sat, 11 Aug 2007 13:38:19 +0000 Subject: [PATCH] Fixed +/- cmds not being set in the flag manager. --- amxmodx/CFlagManager.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/amxmodx/CFlagManager.cpp b/amxmodx/CFlagManager.cpp index 04d3cef6..458a9b80 100644 --- a/amxmodx/CFlagManager.cpp +++ b/amxmodx/CFlagManager.cpp @@ -161,7 +161,9 @@ done_with_flags: - if (!isalnum(*Command)) + //if (!isalnum(*Command)) + if (*Command == '"' || + *Command == '\0') { continue; }; @@ -208,6 +210,7 @@ void CFlagManager::LookupOrAdd(const char *Command, int &Flags, AMX *Plugin) { return; } + int TempFlags=Flags; if (TempFlags==-1) @@ -338,7 +341,8 @@ int CFlagManager::ShouldIAddThisCommand(const AMX *amx, const cell *params, cons { return 0; } - + + // If 5th param exists it was compiled after this change was made // if it does not exist, try our logic at the end of this function // 5th param being > 0 means explicit yes