Skip to content

Commit fe87d3b

Browse files
authored
Remove more no-op punishments from admin UI
1 parent c4d4c5a commit fe87d3b

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

Zero-K.info/Controllers/UsersController.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,10 @@ public ActionResult LobbyDetail(string id)
239239
[Auth(Role = AdminLevel.Moderator)]
240240
public ActionResult Punish(int accountID,
241241
string reason,
242-
bool deleteXP,
243242
bool banMute,
244243
bool banCommanders,
245244
bool banSite,
246245
bool banLobby,
247-
bool banUnlocks,
248246
bool banSpecChat,
249247
bool banForum,
250248
string banIP,
@@ -266,11 +264,11 @@ public ActionResult Punish(int accountID,
266264
BanSite = banSite,
267265
BanLobby = banLobby,
268266
BanExpires = DateTime.UtcNow.AddHours(banHours),
269-
BanUnlocks = banUnlocks,
267+
BanUnlocks = false,
270268
BanSpecChat = banSpecChat,
271269
BanIP = banIP,
272270
BanForum = banForum,
273-
DeleteXP = deleteXP,
271+
DeleteXP = false,
274272
DeleteInfluence = false,
275273
CreatedAccountID = Global.AccountID,
276274
UserID = banUserID

Zero-K.info/Views/Users/AdminUserDetail.cshtml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,8 @@
172172
Reason: @Html.TextBox("reason", "Smurf")<br />
173173
<br />
174174

175-
Delete XP: @Html.CheckBox("deleteXP")<br />
176-
<br />
177175
Mute: @Html.CheckBox("banMute")<br />
178176
Block commanders: @Html.CheckBox("banCommanders")<br />
179-
Block unlocks: @Html.CheckBox("banUnlocks")<br />
180177
Disallow spec chat: @Html.CheckBox("banSpecChat")<br />
181178
<br />
182179
IP: @Html.TextBox("banIP", Model.AccountIPs.OrderByDescending(x => x.LastLogin).Select(x => x.IP).FirstOrDefault())<br />

0 commit comments

Comments
 (0)