From f035cd92a4d75858606dd6dd41105fb914adcf31 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 15 May 2023 19:08:07 +0200 Subject: msg: strings, not words --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command.c') 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]; -- cgit v1.3