mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Vending machines don't vend on suspended accounts
This commit is contained in:
@@ -189,6 +189,7 @@
|
|||||||
visible_message("<span class='info'>[usr] swipes a card through [src].</span>")
|
visible_message("<span class='info'>[usr] swipes a card through [src].</span>")
|
||||||
var/datum/money_account/CH = get_account(C.associated_account_number)
|
var/datum/money_account/CH = get_account(C.associated_account_number)
|
||||||
if (CH) // Only proceed if card contains proper account number.
|
if (CH) // Only proceed if card contains proper account number.
|
||||||
|
if(!CH.suspended)
|
||||||
if(CH.security_level != 0) //If card requires pin authentication (ie seclevel 1 or 2)
|
if(CH.security_level != 0) //If card requires pin authentication (ie seclevel 1 or 2)
|
||||||
if(vendor_account)
|
if(vendor_account)
|
||||||
var/attempt_pin = input("Enter pin code", "Vendor transaction") as num
|
var/attempt_pin = input("Enter pin code", "Vendor transaction") as num
|
||||||
@@ -199,6 +200,8 @@
|
|||||||
else
|
else
|
||||||
//Just Vend it.
|
//Just Vend it.
|
||||||
transfer_and_vend(CH)
|
transfer_and_vend(CH)
|
||||||
|
else
|
||||||
|
usr << "\icon[src]<span class='warning'>Connected account has been suspended.</span>"
|
||||||
else
|
else
|
||||||
usr << "\icon[src]<span class='warning'>Error: Unable to access your account. Please contact technical support if problem persists.</span>"
|
usr << "\icon[src]<span class='warning'>Error: Unable to access your account. Please contact technical support if problem persists.</span>"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user