1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Fix command system not recognizing greedy argument types after changes in previous commits. Credits to @DrakezZ for spotting the issue

This commit is contained in:
Sandu Liviu Catalin 2016-07-16 13:44:03 +03:00
parent efb284d880
commit 7fe7116df4

View File

@ -1800,7 +1800,7 @@ public:
// Retrieve the argument flags
const Uint8 f = m_ArgSpec[arg];
// Perform the requested check
return (f == CMDARG_ANY) || ((f & flag) != 0x0);
return (f == CMDARG_ANY) || ((f & flag) != 0x0) || ((f & CMDARG_GREEDY) && (flag & CMDARG_STRING));
}
/* --------------------------------------------------------------------------------------------