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:
parent
c8612a69e4
commit
7733c2cb67
1 changed files with 3 additions and 0 deletions
|
@ -248,6 +248,9 @@ minetest.register_chatcommand("t", {
|
|||
minetest.chat_send_player(name, "The team channel is disabled.")
|
||||
return
|
||||
end
|
||||
if param == "" then
|
||||
return false, "-!- Empty team message, see /help t"
|
||||
end
|
||||
|
||||
local tname = ctf.player(name).team
|
||||
local team = ctf.team(tname)
|
||||
|
|
Loading…
Reference in a new issue