mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Merge pull request #178 from tgstation/Cyberboss-patch-1
Fixes being unable to deadmin an admin with a space in their name
This commit is contained in:
@@ -133,7 +133,7 @@ namespace TGControlPanel
|
||||
MessageBox.Show("You must select an admin first!");
|
||||
return;
|
||||
}
|
||||
var result = Server.GetComponent<ITGConfig>().Deadmin(selectedAdmin.Split(' ')[0]);
|
||||
var result = Server.GetComponent<ITGConfig>().Deadmin(selectedAdmin.Split('(')[0].Trim());
|
||||
if (result != null)
|
||||
MessageBox.Show("Error: " + result);
|
||||
LoadAdminsList();
|
||||
|
||||
Reference in New Issue
Block a user