Fix linter errors and make Makefile more portable

This commit is contained in:
eleksir
2023-09-02 15:42:41 -07:00
parent 716fc59700
commit 91eac5cb6d
5 changed files with 21 additions and 6 deletions

View File

@@ -187,6 +187,7 @@ func buny(v xmpp.Presence) error { //nolint:gocognit,gocyclo
}
log.Debugf("Checking nick %s vs room %s blacklist regex %s", evilJid, room, nickRegexp)
if re.MatchString(evilNick) {
// Баним именно jid
if id, err := squash(room, evilJid, bEntry.ReasonEnable, v.Type); err != nil {