Merge pull request #602 from skull132/master

Autobanner fix 2
This commit is contained in:
skull132
2015-06-09 17:33:19 +03:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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())
+1 -1
View File
@@ -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