fix invite crashing when inviting no one

master
fishyWET 2017-11-18 08:03:29 +08:00 committed by GitHub
parent a8e6a58779
commit 849d62a09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -752,7 +752,7 @@ minetest.register_chatcommand("p", {
else party.send_notice(name, "Player "..param2.." does not exist!")
end
elseif param1 == "invite" then
elseif param1 == "invite" and param2 ~= nil then
if cparty ~= "" then
if party.check(name, 2) == true then
return
@ -1118,4 +1118,4 @@ end
party.set_value = function(value, newvalue)
mod_storage:set_string(value, newvalue)
end
end