forked from minetest-mods/irc_commands
Accept whitespace in passwords
This commit is contained in:
parent
99afcc794b
commit
d80004c524
2
init.lua
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user