From d80004c524c9188e1c3402f85493c80b22c965a9 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sun, 18 Feb 2018 19:40:54 +0000 Subject: [PATCH] Accept whitespace in passwords --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 5aef834..d83095c 100644 --- a/init.lua +++ b/init.lua @@ -39,7 +39,7 @@ irc:register_bot_command("login", { if args == "" then return false, "You need a username and password." end - local playerName, password = args:match("^(%S+)%s(%S+)$") + local playerName, password = args:match("^(%S+)%s(.+)$") if not playerName then return false, "Player name and password required." end