Prevent empty messages in team chat (#830)

* Update init.lua

* Update init.lua

* Update init.lua

* Update mods/ctf/ctf_chat/init.lua

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update init.lua

* Update mods/ctf/ctf_chat/init.lua

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update init.lua

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Toby1710 2021-04-21 18:46:56 +03:00 committed by GitHub
parent c8612a69e4
commit 7733c2cb67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -248,6 +248,9 @@ minetest.register_chatcommand("t", {
minetest.chat_send_player(name, "The team channel is disabled.") minetest.chat_send_player(name, "The team channel is disabled.")
return return
end end
if param == "" then
return false, "-!- Empty team message, see /help t"
end
local tname = ctf.player(name).team local tname = ctf.player(name).team
local team = ctf.team(tname) local team = ctf.team(tname)