# # # patch "automate.cc" # from [ba8f8809083f5075933af915f0dc5e18504d3043] # to [a44275865d6832ec1f58dd052c98b1a544765845] # ============================================================ --- automate.cc ba8f8809083f5075933af915f0dc5e18504d3043 +++ automate.cc a44275865d6832ec1f58dd052c98b1a544765845 @@ -2321,27 +2321,27 @@ CMD_AUTOMATE(lua, "LUA_FUNCTION [ARG1 [A E(args.size() >= 1, origin::user, F("wrong argument count")); - std::string func = idx(args, 0)(); + std::string func = idx(args, 0)(); - E(app.lua.hook_exists(func), origin::user, - F("lua function '%s' does not exist") % func); + E(app.lua.hook_exists(func), origin::user, + F("lua function '%s' does not exist") % func); - std::vector func_args; - if (args.size() > 1) - { - for (unsigned int i=1; i func_args; + if (args.size() > 1) + { + for (unsigned int i=1; i