mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Adds ckey to some of the ban prompts. (#37412)
This commit is contained in:
committed by
yogstation13-bot
parent
62c8ea1445
commit
aa79942f0e
@@ -520,7 +520,7 @@
|
|||||||
|
|
||||||
var/duration
|
var/duration
|
||||||
|
|
||||||
switch(alert("Temporary Ban?",,"Yes","No"))
|
switch(alert("Temporary Ban for [banned_key]?",,"Yes","No"))
|
||||||
if("Yes")
|
if("Yes")
|
||||||
temp = 1
|
temp = 1
|
||||||
var/mins = 0
|
var/mins = 0
|
||||||
@@ -532,13 +532,13 @@
|
|||||||
return
|
return
|
||||||
minutes = GLOB.CMinutes + mins
|
minutes = GLOB.CMinutes + mins
|
||||||
duration = GetExp(minutes)
|
duration = GetExp(minutes)
|
||||||
reason = input(usr,"Please State Reason.","Reason",reason2) as message|null
|
reason = input(usr,"Please State Reason For Banning [banned_key].","Reason",reason2) as message|null
|
||||||
if(!reason)
|
if(!reason)
|
||||||
return
|
return
|
||||||
if("No")
|
if("No")
|
||||||
temp = 0
|
temp = 0
|
||||||
duration = "Perma"
|
duration = "Perma"
|
||||||
reason = input(usr,"Please State Reason.","Reason",reason2) as message|null
|
reason = input(usr,"Please State Reason For Banning [banned_key].","Reason",reason2) as message|null
|
||||||
if(!reason)
|
if(!reason)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -953,13 +953,13 @@
|
|||||||
|
|
||||||
//Banning comes first
|
//Banning comes first
|
||||||
if(notbannedlist.len) //at least 1 unbanned job exists in joblist so we have stuff to ban.
|
if(notbannedlist.len) //at least 1 unbanned job exists in joblist so we have stuff to ban.
|
||||||
switch(alert("Temporary Ban?",,"Yes","No", "Cancel"))
|
switch(alert("Temporary Ban for [M.ckey]?",,"Yes","No", "Cancel"))
|
||||||
if("Yes")
|
if("Yes")
|
||||||
var/mins = input(usr,"How long (in minutes)?","Ban time",1440) as num|null
|
var/mins = input(usr,"How long (in minutes)?","Ban time",1440) as num|null
|
||||||
if(mins <= 0)
|
if(mins <= 0)
|
||||||
to_chat(usr, "<span class='danger'>[mins] is not a valid duration.</span>")
|
to_chat(usr, "<span class='danger'>[mins] is not a valid duration.</span>")
|
||||||
return
|
return
|
||||||
var/reason = input(usr,"Please State Reason.","Reason") as message|null
|
var/reason = input(usr,"Please State Reason For Banning [M.ckey].","Reason") as message|null
|
||||||
if(!reason)
|
if(!reason)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -984,7 +984,7 @@
|
|||||||
href_list["jobban2"] = 1 // lets it fall through and refresh
|
href_list["jobban2"] = 1 // lets it fall through and refresh
|
||||||
return 1
|
return 1
|
||||||
if("No")
|
if("No")
|
||||||
var/reason = input(usr,"Please State Reason","Reason") as message|null
|
var/reason = input(usr,"Please State Reason For Banning [M.ckey].","Reason") as message|null
|
||||||
if(reason)
|
if(reason)
|
||||||
var/msg
|
var/msg
|
||||||
for(var/job in notbannedlist)
|
for(var/job in notbannedlist)
|
||||||
@@ -1192,13 +1192,13 @@
|
|||||||
if(M.client && M.client.holder)
|
if(M.client && M.client.holder)
|
||||||
return //admins cannot be banned. Even if they could, the ban doesn't affect them anyway
|
return //admins cannot be banned. Even if they could, the ban doesn't affect them anyway
|
||||||
|
|
||||||
switch(alert("Temporary Ban?",,"Yes","No", "Cancel"))
|
switch(alert("Temporary Ban for [M.ckey]?",,"Yes","No", "Cancel"))
|
||||||
if("Yes")
|
if("Yes")
|
||||||
var/mins = input(usr,"How long (in minutes)?","Ban time",1440) as num|null
|
var/mins = input(usr,"How long (in minutes)?","Ban time",1440) as num|null
|
||||||
if(mins <= 0)
|
if(mins <= 0)
|
||||||
to_chat(usr, "<span class='danger'>[mins] is not a valid duration.</span>")
|
to_chat(usr, "<span class='danger'>[mins] is not a valid duration.</span>")
|
||||||
return
|
return
|
||||||
var/reason = input(usr,"Please State Reason.","Reason") as message|null
|
var/reason = input(usr,"Please State Reason For Banning [M.ckey].","Reason") as message|null
|
||||||
if(!reason)
|
if(!reason)
|
||||||
return
|
return
|
||||||
if(!DB_ban_record(BANTYPE_TEMP, M, mins, reason))
|
if(!DB_ban_record(BANTYPE_TEMP, M, mins, reason))
|
||||||
@@ -1221,7 +1221,7 @@
|
|||||||
AH.Resolve()
|
AH.Resolve()
|
||||||
qdel(M.client)
|
qdel(M.client)
|
||||||
if("No")
|
if("No")
|
||||||
var/reason = input(usr,"Please State Reason.","Reason") as message|null
|
var/reason = input(usr,"Please State Reason For Banning [M.ckey].","Reason") as message|null
|
||||||
if(!reason)
|
if(!reason)
|
||||||
return
|
return
|
||||||
switch(alert(usr,"IP ban?",,"Yes","No","Cancel"))
|
switch(alert(usr,"IP ban?",,"Yes","No","Cancel"))
|
||||||
|
|||||||
Reference in New Issue
Block a user