Skip to content

Commit

Permalink
fix whispering return result
Browse files Browse the repository at this point in the history
fixes #13 (hopefully)
  • Loading branch information
BuckarooBanzay committed May 26, 2020
1 parent 414ad0a commit 3f94279
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions whisper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ beerchat.whisper = function(name, message)

-- check if muted
if not beerchat.has_player_muted_player(target, name) then
-- mark as sent
successful = true
-- mark as sent if anyone else is hearing it
if name ~= other_player:get_player_name() then
successful = true
end

-- deliver message
beerchat.send_message(
Expand Down

0 comments on commit 3f94279

Please sign in to comment.