From aa173ce94f3983f1f8dd333e6a25ab39f69a3a67 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 16 Jan 2024 13:55:36 +0100 Subject: [PATCH] no more misspelling of list for Iceman --- client/src/cmdparser.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/cmdparser.c b/client/src/cmdparser.c index fd85719af..feafb2a4f 100644 --- a/client/src/cmdparser.c +++ b/client/src/cmdparser.c @@ -274,6 +274,14 @@ int CmdsParse(const command_t Commands[], const char *Cmd) { str_lower(cmd_name); + // iceman: I mistyped "list" so many times with "lsit". No more. + char *lsit = strstr(cmd_name, "lsit"); + if (lsit) { + lsit[1] = lsit[2] ^ lsit[1]; + lsit[2] = lsit[1] ^ lsit[2]; + lsit[1] = lsit[2] ^ lsit[1]; + } + // Comment if (cmd_name[0] == '#') return PM3_SUCCESS;