Slash command - remove duplicate codepath
This commit is contained in:
@@ -201,15 +201,9 @@ namespace MareSynchronos
|
|||||||
|
|
||||||
private void OnCommand(string command, string args)
|
private void OnCommand(string command, string args)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(args))
|
var splitArgs = args?.ToLowerInvariant().Trim().Split();
|
||||||
{
|
|
||||||
OpenUi();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var splitArgs = args.ToLowerInvariant().Trim().Split();
|
if (splitArgs == null || splitArgs.Length == 0)
|
||||||
|
|
||||||
if (splitArgs.Length == 0)
|
|
||||||
{
|
{
|
||||||
// Interpret this as toggling the UI
|
// Interpret this as toggling the UI
|
||||||
OpenUi();
|
OpenUi();
|
||||||
|
|||||||
Reference in New Issue
Block a user