Fix command parsing for in-hub commands.

This commit is contained in:
Jan Vidar Krey 2009-05-19 11:22:57 +02:00
parent aa18ac047d
commit be4ff1d8cc
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ int command_dipatcher(struct hub_info* hub, struct user* user, const char* messa
size_t n = 0;
for (n = 0; command_handlers[n].prefix; n++)
{
if (!strncmp(message, command_handlers[n].prefix, command_handlers[n].length))
if (!strncmp(&message[1], command_handlers[n].prefix, command_handlers[n].length))
{
if (command_handlers[n].cred <= user->credentials)
{