From 626c2bbba1c1cd4b9293adfde82d81c0a2389b0b Mon Sep 17 00:00:00 2001 From: Robin Kanters Date: Sat, 23 May 2015 14:54:38 +0200 Subject: [PATCH] Now showing help page #1 by default if no page number is given --- TrueCraft/Commands/HelpCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TrueCraft/Commands/HelpCommand.cs b/TrueCraft/Commands/HelpCommand.cs index de6f4e5..e017208 100644 --- a/TrueCraft/Commands/HelpCommand.cs +++ b/TrueCraft/Commands/HelpCommand.cs @@ -18,13 +18,13 @@ namespace TrueCraft.Commands public override void Handle(IRemoteClient client, string alias, string[] arguments) { - if (arguments.Length < 1) + if (arguments.Length > 1) { Help(client, alias, arguments); return; } - var identifier = arguments.Length >= 1 ? arguments[0] : "0"; + var identifier = arguments.Length == 1 ? arguments[0] : "1"; ICommand found; if ((found = Program.CommandManager.FindByName(identifier)) != null)