optimize ban checks

This commit is contained in:
Aine
2022-11-18 09:22:18 +02:00
parent 0f2683bcd0
commit 3ef6d2698e
5 changed files with 24 additions and 6 deletions

View File

@@ -290,6 +290,7 @@ func (b *Bot) runBanlist(ctx context.Context, commandSlice []string) {
if err != nil {
b.Error(ctx, evt.RoomID, "cannot set bot config: %v", err)
}
b.syncBanlist()
b.SendNotice(ctx, evt.RoomID, "banlist has been updated")
}