From fd65e952b4443b9e516a9f4f8668aac9dc27cd48 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Tue, 30 Jul 2024 19:55:52 -0400 Subject: * fixed a bug where we would end up with an unwanted whitespace at the beginning of all args passed to the custom lua commands * added some notes to the readme --- main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'main.go') diff --git a/main.go b/main.go index 05133c0..e04bb85 100644 --- a/main.go +++ b/main.go @@ -558,6 +558,7 @@ func runCommand( luaArgs = strings.TrimSpace(luaArgs) luaArgs = strings.TrimPrefix(luaArgs, "/") luaArgs = strings.TrimPrefix(luaArgs, args[0]) + luaArgs = strings.TrimSpace(luaArgs) result := RunLuaFunc(args[0], luaArgs, client, appConfig) client.Cmd.Reply(event, result) -- cgit v1.2.3