diff -r 005df14df743 -r 7daf906fbcdc mcabber/src/commands.c --- a/mcabber/src/commands.c Sun Nov 11 12:22:41 2007 +0100 +++ b/mcabber/src/commands.c Sun Nov 11 13:05:57 2007 +0100 @@ -386,6 +386,12 @@ g_free(xpline); return 255; } + } else if (iscmd && !strncasecmp(xpline, "quit", 4) && + (!xpline[4] || xpline[4] == ' ')) { + // If iscmd is true we can have the command without the command prefix + // character (usually '/'). + g_free(xpline); + return 255; } // If verbatim multi-line mode, we check if another /msay command is typed