mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-02-20 19:57:12 +01:00
Improve argument type compatibility check inside command listeners.
This commit is contained in:
parent
498c02fa83
commit
34feeb7903
@ -1800,9 +1800,7 @@ public:
|
||||
// Retrieve the argument flags
|
||||
const Uint8 f = m_ArgSpec[arg];
|
||||
// Perform the requested check
|
||||
return (f == CMDARG_ANY) || // Requires check?
|
||||
(f & flag) || // Exact match?
|
||||
((f & CMDARG_GREEDY) && (flag & CMDARG_STRING));
|
||||
return (f == CMDARG_ANY) || ((f & flag) != 0x0);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user