[WIP] Fix ban by software version, some other under-hood changes

- Use updated version of upstream go-xmpp + fixes on client-side
- Introduce golangci-lint v2 + fixes
- Move especially noisy debugging stuff to separate config handles to be able to switch them off
- Add a bit debug to ban by software path
This commit is contained in:
eleksir
2025-11-30 14:19:01 +03:00
parent a128b473ff
commit 3d85dbcb58
55 changed files with 4165 additions and 13190 deletions

View File

@@ -7,7 +7,7 @@ import (
"strings"
"github.com/davecgh/go-spew/spew"
"github.com/eleksir/go-xmpp"
"github.com/xmppo/go-xmpp"
)
// Cmd парсит команды из чятика.
@@ -222,7 +222,11 @@ func (j *Jabber) Cmd(v xmpp.Chat) error {
}
default:
log.Infof("Rehash command from outer space: %s", spew.Sdump(v))
msg := "Rehash command from outer space: " + spew.Sdump(v)
for str := range strings.SplitSeq(msg, "\n") {
log.Info(str)
}
}