Compare commits

..

2 Commits

Author SHA1 Message Date
eleksir
139ede7022 Update .gitignore 2023-10-29 14:48:01 +03:00
eleksir
2bf0ac18b9 Handle error in caps check and squash 2023-10-29 14:47:35 +03:00
2 changed files with 12 additions and 2 deletions

1
.gitignore vendored
View File

@@ -9,3 +9,4 @@ data/config.json
data/whitelist.json data/whitelist.json
data/blacklist.json data/blacklist.json
buny-jabber-bot buny-jabber-bot
buny-jabber-bot.exe

15
buny.go
View File

@@ -358,10 +358,19 @@ func bunyChat(v xmpp.Chat) error {
if normPhrase == normPhraseUpper { if normPhrase == normPhraseUpper {
realJID := getRealJIDfromNick(v.Remote) realJID := getRealJIDfromNick(v.Remote)
squash(room, realJID, false, v.Type) id, err := squash(room, realJID, false, v.Type)
}
}
if err != nil {
err := fmt.Errorf(
"unable to ban user: id=%s, err=%w",
id,
err,
)
gTomb.Kill(err)
}
}
}
} }
} }