aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 581b319..55d60da 100644
--- a/src/command.c
+++ b/src/command.c
@@ -106,7 +106,7 @@ void cmd_dispatcher_destroy(struct cmd_dispatcher *dispatcher)
int cmd_dispatcher_handle(const struct cmd_dispatcher *dispatcher, const struct msg *command,
struct msg **result)
{
- const char *actual_cmd = msg_get_first_word(command);
+ const char *actual_cmd = msg_get_first_string(command);
for (size_t i = 0; i < dispatcher->numof_cmds; ++i) {
struct cmd_desc *cmd = &dispatcher->cmds[i];