Now showing help page #1 by default if no page number is given

This commit is contained in:
Robin Kanters 2015-05-23 14:54:38 +02:00
parent 95b776af16
commit 626c2bbba1

View File

@ -18,13 +18,13 @@ namespace TrueCraft.Commands
public override void Handle(IRemoteClient client, string alias, string[] arguments) public override void Handle(IRemoteClient client, string alias, string[] arguments)
{ {
if (arguments.Length < 1) if (arguments.Length > 1)
{ {
Help(client, alias, arguments); Help(client, alias, arguments);
return; return;
} }
var identifier = arguments.Length >= 1 ? arguments[0] : "0"; var identifier = arguments.Length == 1 ? arguments[0] : "1";
ICommand found; ICommand found;
if ((found = Program.CommandManager.FindByName(identifier)) != null) if ((found = Program.CommandManager.FindByName(identifier)) != null)