Fix little mistake to not torture jailed players (#27)
Co-authored-by: SX <sx@minetest>
This commit is contained in:
parent
0b8554b394
commit
a05c16b930
@ -142,9 +142,6 @@ beerchat.register_callback('before_send', function(name, message, channel)
|
|||||||
-- override default send method to mute pings for jailed users
|
-- override default send method to mute pings for jailed users
|
||||||
-- but allow chatting without pings on jail channel
|
-- but allow chatting without pings on jail channel
|
||||||
minetest.chat_send_player(name, message)
|
minetest.chat_send_player(name, message)
|
||||||
else
|
|
||||||
-- Inform player if trying to send to other channels
|
|
||||||
return false, "You are in chat-jail, no changing channels for you."
|
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user