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

Commit

Permalink
Revert "fix hot mute logic"
Browse files Browse the repository at this point in the history
This reverts commit 9dbfe15.
  • Loading branch information
maxsupermanhd committed Sep 19, 2024
1 parent 62f4ab4 commit 33d5b51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion messageProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ 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" {
rlcDuration, rlcExceeded := ratelimitChatHandleMessage(inst, msgip)
ratelimitChatHandleMessage(inst, msgip)
rlcDuration, rlcExceeded := ratelimitChatCheck(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 33d5b51

Please sign in to comment.