Mercurial > ~mikael > mcabber > hg
diff mcabber/src/settings.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 | 005df14df743 |
children | d9606bd03144 |
line wrap: on
line diff
--- a/mcabber/src/settings.c Sun Nov 11 12:22:41 2007 +0100 +++ b/mcabber/src/settings.c Sun Nov 11 13:05:57 2007 +0100 @@ -198,7 +198,8 @@ // Set the leading COMMAND_CHAR to build a command line // and process the command *(--line) = COMMAND_CHAR; - process_command(line, TRUE); + if (process_command(line, TRUE) == 255) + mcabber_set_terminate_ui(); } else { scr_LogPrint(LPRINT_LOGNORM, "Error in configuration file (l. %d): " "this is not an assignment", ln);