From be4ff1d8cc54ac93f90783f46769180a424c61e8 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Tue, 19 May 2009 11:22:57 +0200 Subject: [PATCH] Fix command parsing for in-hub commands. --- src/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index 5259cd0..a94b93b 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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) {