Adds a confirmation to the deny shuttle call verb

This commit is contained in:
joep van der velden
2020-09-20 11:12:48 +02:00
parent dac5b92c83
commit dccd56d640
+3
View File
@@ -874,6 +874,9 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(!check_rights(R_ADMIN))
return
if(alert(usr, "Do you want to [SSshuttle.emergencyNoEscape ? "ALLOW" : "DENY"] shuttle calls?", "Toggle Deny Shuttle", "No", "Yes") != "Yes")
return
if(SSshuttle)
SSshuttle.emergencyNoEscape = !SSshuttle.emergencyNoEscape