Mercurial > ~mikael > mcabber > hg
diff mcabber/src/commands.c @ 1359:7daf906fbcdc
The command /quit can be used in bindings, hooks and sourced files
(It used to work in bindings only)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 11 Nov 2007 13:05:57 +0100 |
parents | 7794d76ca90e |
children | 8613d3f4ae91 |
line wrap: on
line diff
--- 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