public static async Task SetAccountLock(string accountName, AccountLockType lockType, bool locked) { string lType = "ip"; if (lockType == AccountLockType.Country) lType = "country"; if (_tcm.Online) await GetClient().SendMessage(TCCommand.AccountLock.BuildCommand(lType, locked ? "on" : "off")); else await _tcm.AuthDatabase.SetAccountLock(accountName, locked); }
public static async Task SetAccountLock(string accountName, AccountLockType lockType, bool locked) { string lType = "ip"; if (lockType == AccountLockType.Country) { lType = "country"; } if (_tcm.Online) { await GetClient().SendMessage(TCCommand.AccountLock.BuildCommand(lType, locked ? "on" : "off")); } else { await _tcm.AuthDatabase.SetAccountLock(accountName, locked); } }