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

Commit

Permalink
add headers to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsupermanhd committed Sep 19, 2024
1 parent 830ec23 commit 9448736
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions messageProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,11 @@ func messageHandlerProcessChat(inst *instance, msg string) bool {
if msgtype == "WZCHATCMD" && (strings.HasPrefix(string(msgcontent), "/rl")) {
if msghash == "aa8519279495c1e8e6f1603aa31c01796d4eeae46e4a81e666404aea0064371d" {
ratelimitChatLock.Lock()
instWriteFmt(inst, `chat direct %s %s`, msgb64pubkey, "rate limit penalties:")
for k, v := range ratelimitChatPenalties {
instWriteFmt(inst, `chat direct %s %s`, msgb64pubkey, fmt.Sprintf("penalty %q for %s", k, v))
}
instWriteFmt(inst, `chat direct %s %s`, msgb64pubkey, "rate limit data:")
for k, v := range ratelimitChatData {
instWriteFmt(inst, `chat direct %s %s`, msgb64pubkey, fmt.Sprintf("data %q for %d", k, v.Len()))
}
Expand Down

0 comments on commit 9448736

Please sign in to comment.