Skip to content

Commit

Permalink
Fix #164 & Fix mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardosnt committed Mar 11, 2016
1 parent 3e293e2 commit 4042851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InternalModules/Kit/Commands/CommandCreateKit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public override CommandResult OnExecute( ICommandSource src, ICommandArgs args )
return CommandResult.Lang( EssLang.KIT_ALREADY_EXIST, name );
}

if ( args.Length < 1 )
if ( args.Length > 1 )
{
if ( !args[1].IsInt )
{
return CommandResult.Lang( EssLang.INVALID_BOOLEAN, args[1] );
return CommandResult.Lang( EssLang.INVALID_NUMBER, args[1] );
}

if ( args[1].ToInt < 0 )
Expand Down

0 comments on commit 4042851

Please sign in to comment.