mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 08:36:00 +01:00
Fix stickyban SS runtiming on initialize (#64586)
Stickyban SS no longer runtimes if there is broken entries in the DB and instead notifes admins
This commit is contained in:
@@ -44,6 +44,12 @@ SUBSYSTEM_DEF(stickyban)
|
||||
if (ckey != bannedkey)
|
||||
world.SetConfig("ban", bannedkey, null)
|
||||
|
||||
//get_stickyban_from_ckey returned null, aka something broke. Notify admins about it
|
||||
if (!ban)
|
||||
message_admins("Failed to apply stickyban for [bannedkey]. Check the DB for corrupt stickyban entries.")
|
||||
log_admin_private ("Failed to apply stickyban for [bannedkey]. Check the DB for corrupt stickyban entries.")
|
||||
continue
|
||||
|
||||
if (!ban["ckey"])
|
||||
ban["ckey"] = ckey
|
||||
|
||||
|
||||
Reference in New Issue
Block a user