From ee25f2e069d1d58885d41838ade74607a1d1f968 Mon Sep 17 00:00:00 2001 From: Jordie0608 Date: Sun, 18 Jan 2015 16:15:29 +1100 Subject: [PATCH 1/2] Prevents permabans from noting as 0 minute bans --- code/modules/admin/NewBan.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/NewBan.dm b/code/modules/admin/NewBan.dm index 7e8a502250e..bb63d1f7f54 100644 --- a/code/modules/admin/NewBan.dm +++ b/code/modules/admin/NewBan.dm @@ -116,7 +116,10 @@ var/savefile/Banlist Banlist["temp"] << temp if (temp) Banlist["minutes"] << bantimestamp - notes_add(ckey, "Banned for [minutes] minutes - [reason]") + if(!minutes) + notes_add(ckey, "Permanently banned - [reason]") + else + notes_add(ckey, "Banned for [minutes] minutes - [reason]") return 1 /proc/RemoveBan(foldername) From de2965a939b23d443e1978f7ae53e11832b03999 Mon Sep 17 00:00:00 2001 From: Jordie0608 Date: Sun, 25 Jan 2015 02:22:28 +1100 Subject: [PATCH 2/2] changed note check to temp --- code/modules/admin/NewBan.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/NewBan.dm b/code/modules/admin/NewBan.dm index bb63d1f7f54..c6f7d383936 100644 --- a/code/modules/admin/NewBan.dm +++ b/code/modules/admin/NewBan.dm @@ -116,7 +116,7 @@ var/savefile/Banlist Banlist["temp"] << temp if (temp) Banlist["minutes"] << bantimestamp - if(!minutes) + if(!temp) notes_add(ckey, "Permanently banned - [reason]") else notes_add(ckey, "Banned for [minutes] minutes - [reason]")