mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-09 07:33:41 +08:00
chore: 优化自动禁用代码
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user