From c208bc967f9bcf003008b6dd4bd44876a48dbf7a Mon Sep 17 00:00:00 2001 From: SX Date: Fri, 21 Aug 2020 18:06:31 +0300 Subject: [PATCH] #13 Fix whisper feedback message sending --- whisper.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/whisper.lua b/whisper.lua index b2c15bf..ad69592 100644 --- a/whisper.lua +++ b/whisper.lua @@ -78,11 +78,10 @@ beerchat.whisper = function(name, message) end end - if successful then - return true - else - return true, "no one heard you whispering!" + if not successful then + minetest.chat_send_player(name, "no one heard you whispering!") end + return true end end