Skip to content

Commit

Permalink
Fix calling of wrong method
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Smith committed May 1, 2015
1 parent ecd704a commit b928560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TrueCraft/Commands/CommandManager.cs
Expand Up @@ -38,7 +38,7 @@ private void LoadCommands()
/// <param name="arguments"></param>
public void HandleCommand(IRemoteClient client, string alias, string[] arguments)
{
ICommand foundCommand = FindByName(alias) ?? FindByName(alias);
ICommand foundCommand = FindByName(alias) ?? FindByAlias(alias);
if (foundCommand == null)
{
client.SendMessage("Unable to locate the command \"" + alias + "\". It might be in a different server!");
Expand All @@ -58,4 +58,4 @@ public ICommand FindByAlias(string alias)
return Commands.FirstOrDefault(c => c.Aliases.Contains(alias /*, StringComparer.OrdinalIgnoreCase*/));
}
}
}
}

0 comments on commit b928560

Please sign in to comment.