Skip to content

Commit

Permalink
remove stray prints
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay authored Oct 9, 2023
1 parent adcc70e commit 4a85a63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions handlers/chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ if minetest.get_modpath("beerchat") then

-- game -> ui
table.insert(beerchat.cb.on_send_on_channel, function(_, msg)
print("beerchat.cb.on_send_on_channel", msg)
if last_sent_msg ~= msg then
-- this is not the last sent message, relay to ui
mtui.send_command({
Expand All @@ -23,7 +22,6 @@ if minetest.get_modpath("beerchat") then

-- ui -> game
mtui.register_on_command("chat_send", function(data)
print("chat_send", data)
-- remember last sent message (don't send it back to the ui in the above callback)
last_sent_msg = data
beerchat.send_on_channel(data)
Expand Down Expand Up @@ -95,4 +93,4 @@ minetest.register_on_shutdown(function()
message = "✖ Minetest shutting down"
}
})
end)
end)

0 comments on commit 4a85a63

Please sign in to comment.