Skip to content

Commit

Permalink
Merge pull request #21 from minetest-beerchat/fix-whisper
Browse files Browse the repository at this point in the history
#13 Fix whisper feedback message sending
  • Loading branch information
S-S-X committed Aug 21, 2020
2 parents b9c820d + c208bc9 commit a4bcb7e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions whisper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a4bcb7e

Please sign in to comment.