Accept whitespace in passwords

This commit is contained in:
ShadowNinja 2018-02-18 19:40:54 +00:00
parent 99afcc794b
commit d80004c524
1 changed files with 1 additions and 1 deletions

View File

@ -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