diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 009ab4c809..a0404c6be9 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -189,16 +189,19 @@ visible_message("[usr] swipes a card through [src].") var/datum/money_account/CH = get_account(C.associated_account_number) if (CH) // Only proceed if card contains proper account number. - if(CH.security_level != 0) //If card requires pin authentication (ie seclevel 1 or 2) - if(vendor_account) - var/attempt_pin = input("Enter pin code", "Vendor transaction") as num - var/datum/money_account/D = attempt_account_access(C.associated_account_number, attempt_pin, 2) - transfer_and_vend(D) + if(!CH.suspended) + if(CH.security_level != 0) //If card requires pin authentication (ie seclevel 1 or 2) + if(vendor_account) + var/attempt_pin = input("Enter pin code", "Vendor transaction") as num + var/datum/money_account/D = attempt_account_access(C.associated_account_number, attempt_pin, 2) + transfer_and_vend(D) + else + usr << "\icon[src]Unable to access account. Check security settings and try again." else - usr << "\icon[src]Unable to access account. Check security settings and try again." + //Just Vend it. + transfer_and_vend(CH) else - //Just Vend it. - transfer_and_vend(CH) + usr << "\icon[src]Connected account has been suspended." else usr << "\icon[src]Error: Unable to access your account. Please contact technical support if problem persists."