chore: 优化自动禁用代码

This commit is contained in:
CalciumIon committed 2024-08-03 17:32:28 +08:00
1 parent 421d34b3b7
commit a1284e4a58
5 files changed
+23 -14

No files matched your search

+1 -1
View File
@@ -240,7 +240,7 @@ func testAllChannels(notify bool) error {
}
// parse *int to bool
if channel.AutoBan != nil && *channel.AutoBan == 0 {
if !channel.GetAutoBan() {
ban = false
}