commit 40939ffefb1f653d6398e228e752be64f5aec7a9 parent 2b1a217ad6b4d4bc4978e4c414e7e55cd997a0ea Author: sin <sin@2f30.org> Date: Thu, 25 Dec 2014 14:10:35 +0000 Complain for unknown commands Diffstat:
M | cmd.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/cmd.c b/cmd.c @@ -238,6 +238,8 @@ docmd(int clifd) break; } } + if (i == LEN(cmds)) + dprintf(clifd, "ERR \"unknown command\"\n"); memmove(buf, p + 1, n); p = buf; resid = sz - n;