make banlist consistent, fixes #57

This commit is contained in:
Aine
2023-02-13 22:05:48 +02:00
parent 19e2047a2b
commit 3e0ecc1c02
3 changed files with 17 additions and 18 deletions

View File

@@ -124,7 +124,7 @@ func (b *Bot) IsTrusted(addr net.Addr) bool {
// Ban an address
func (b *Bot) Ban(addr net.Addr) {
if !b.cfg.BanlistEnalbed() {
if !b.cfg.GetBot().BanlistEnabled() {
return
}
if b.IsTrusted(addr) {