Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix hot mute logic
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsupermanhd committed Sep 19, 2024
1 parent 34e3c01 commit 9dbfe15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions messageProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,7 @@ func messageHandlerProcessChat(inst *instance, msg string) bool {
instWriteFmt(inst, `chat direct %s %s`, msgb64pubkey, "If you would like to become a part of Autohoster moderation team, feel free to contact us: https://wz2100-autohost.net/about#contact")
}
if msgtype == "WZCHATLOB" {
ratelimitChatHandleMessage(inst, msgip)
rlcDuration, rlcExceeded := ratelimitChatCheck(inst, msgip)
rlcDuration, rlcExceeded := ratelimitChatHandleMessage(inst, msgip)
if rlcExceeded {
instWriteFmt(inst, `set chat quickchat %s`, msgb64pubkey)
instWriteFmt(inst, `chat direct %s %s`, msgb64pubkey, "You were limited to quickchat due to spamming for "+rlcDuration.String())
Expand Down

0 comments on commit 9dbfe15

Please sign in to comment.