Closed stepa2 closed 3 years ago
Probably no chat entry is matched with uppercase parts of the command.
EasyChat.CmdSuggestions:AddSuggestionHandler("Example","/", {ABC = {}, ZABC = {}, Abc = {}, ZAbc = {}, Zabc = {}, abc = {}, zabc = {}}) (run with lua_run_cl)
EasyChat.CmdSuggestions:AddSuggestionHandler("Example","/", {ABC = {}, ZABC = {}, Abc = {}, ZAbc = {}, Zabc = {}, abc = {}, zabc = {}})
/
/ABC
/abc
/ZABC
/ZAbc
/Zabc
/zabc
/a
/z
/b
/Abc
/c
/ab
/bc
Nice finding! I think the issue is fixed now, could you try again?
It works now
Probably no chat entry is matched with uppercase parts of the command.
Example code:
EasyChat.CmdSuggestions:AddSuggestionHandler("Example","/", {ABC = {}, ZABC = {}, Abc = {}, ZAbc = {}, Zabc = {}, abc = {}, zabc = {}})
(run with lua_run_cl)Behaviour (all suggestions are in original order):
/
, suggestions are/ABC
,/abc
,/ZABC
,/ZAbc
,/Zabc
,/abc
,/zabc
/a
in any case, suggestions are/Zabc
,/abc
,/zabc
(/ABC
,/ZABC
and/ZAbc
are missing)/z
in any case, suggestion is/zabc
(/ZABC
and/ZAbc
are missing)/b
in any case, suggestions are/Abc
,/ZAbc
,/Zabc
,/abc
,/zabc
(/ABC
,/ZABC
and/ZAbc
are missing)/c
in any case, suggestions are/Abc
,/ZAbc
,/Zabc
,/abc
,/zabc
(/ABC
,/ZABC
and/ZAbc
are missing)/ab
in any case, suggestions are/Zabc
,/abc
,/zabc
(/ABC
,/ZABC
and/ZAbc
are missing)/bc
in any case, suggestions are/Abc
,/ZAbc
,/Zabc
,/abc
,/zabc
(/ABC
,/ZABC
and/ZAbc
are missing)/abc
in any case, suggestion is/Zabc
,/abc
,/zabc
(/ABC
,/ZABC
and/ZAbc
are missing)