Fix little mistake to not torture jailed players (#27)

Co-authored-by: SX <sx@minetest>
This commit is contained in:
SX 2021-01-21 00:05:15 +02:00 committed by GitHub
parent 0b8554b394
commit a05c16b930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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