mirror of
https://github.com/minetest-mods/irc_commands.git
synced 2025-01-09 15:20:19 +01:00
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
|
if args == "" then
|
||||||
return false, "You need a username and password."
|
return false, "You need a username and password."
|
||||||
end
|
end
|
||||||
local playerName, password = args:match("^(%S+)%s(%S+)$")
|
local playerName, password = args:match("^(%S+)%s(.+)$")
|
||||||
if not playerName then
|
if not playerName then
|
||||||
return false, "Player name and password required."
|
return false, "Player name and password required."
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user