1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 18:07:14 +01:00

Minor adjustments in command system manager method names. And added brackets to make the code more clear.

This commit is contained in:
Sandu Liviu Catalin 2016-07-14 21:19:14 +03:00
parent 27f2a57573
commit 50b396bf05
2 changed files with 3 additions and 3 deletions

View File

@ -1080,8 +1080,8 @@ void Register(HSQUIRRELVM vm)
.Func(_SC("Clear"), &Manager::Clear)
.Func(_SC("Attach"), &Manager::Attach)
.Func(_SC("FindByName"), &Manager::FindByName)
.Func(_SC("BindOnFail"), &Manager::SetOnFail)
.Func(_SC("BindOnAuth"), &Manager::SetOnAuth)
.Func(_SC("BindFail"), &Manager::SetOnFail)
.Func(_SC("BindAuth"), &Manager::SetOnAuth)
.Func(_SC("GetArray"), &Manager::GetCommandsArray)
.Func(_SC("GetTable"), &Manager::GetCommandsTable)
.Func(_SC("Foreach"), &Manager::ForeachCommand)

View File

@ -1754,7 +1754,7 @@ public:
// Perform the requested check
return (f == CMDARG_ANY) || // Requires check?
(f & flag) || // Exact match?
(f & CMDARG_GREEDY && flag & CMDARG_STRING);
((f & CMDARG_GREEDY) && (flag & CMDARG_STRING));
}
/* --------------------------------------------------------------------------------------------