log ban type

This commit is contained in:
Shish 2019-12-15 16:21:48 +00:00
parent 0d6623c928
commit 8740d83686

View file

@ -245,7 +245,7 @@ class IPBan extends Extension
$database->Execute($sql, ["ip"=>$event->ip, "mode"=>$event->mode, "reason"=>$event->reason, "expires"=>$event->expires, "admin_id"=>$user->id]);
$cache->delete("ip_bans");
$cache->delete("network_bans");
log_info("ipban", "Banned {$event->ip} because '{$event->reason}' until {$event->expires}");
log_info("ipban", "Banned ({$event->mode}) {$event->ip} because '{$event->reason}' until {$event->expires}");
}
public function onRemoveIPBan(RemoveIPBanEvent $event)