diff --git a/code/modules/admin/DB ban/functions.dm b/code/modules/admin/DB ban/functions.dm index 8de17af1..268b0d6c 100644 --- a/code/modules/admin/DB ban/functions.dm +++ b/code/modules/admin/DB ban/functions.dm @@ -1,7 +1,7 @@ datum/admins/proc/DB_ban_record(var/bantype, var/mob/banned_mob, var/duration = -1, var/reason, var/job = "", var/rounds = 0, var/banckey = null, var/autobanner = 0, var/autoip = null, var/autocid = null) - if(!check_rights(R_MOD,0) && !check_rights(R_BAN)) return + if(!check_rights(R_MOD,0) && !check_rights(R_BAN) && !autobanner) return establish_db_connection() if(!dbcon.IsConnected()) diff --git a/code/modules/admin/IsBanned.dm b/code/modules/admin/IsBanned.dm index 7eb93631..0179bab5 100644 --- a/code/modules/admin/IsBanned.dm +++ b/code/modules/admin/IsBanned.dm @@ -128,7 +128,7 @@ world/IsBanned(key,address,computer_id) if(multikey) desc = "\nReason: You, or another user of this computer or connection ([pckey]) is banned from playing here. The ban reason is:\nThis is an automatic ban for attempted bandodging. The original ban reason is this: [reason]\nThis ban was applied by [ackey] on [bantime], [expires]" var/newreason = "This is an automatic ban for attempted bandodging. The original ban reason: [reason]." - Adminbot.DB_ban_record(1, null, null, reason, null, null, ckey(key), 1, address, computer_id) + Adminbot.DB_ban_record(1, null, null, newreason, null, null, ckey(key), 1, address, computer_id) notes_add_sql(key, newreason, null, address, computer_id) del Adminbot