Mercurial > hg
comparison mcabber/src/hooks.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 | 7bbfb0073f88 |
children | f8321420ed7a |
comparison
equal
deleted
inserted
replaced
1358:005df14df743 | 1359:7daf906fbcdc |
---|---|
347 | 347 |
348 buf = g_strdup_printf("Running %s...", hookname); | 348 buf = g_strdup_printf("Running %s...", hookname); |
349 scr_LogPrint(LPRINT_LOGNORM, "%s", buf); | 349 scr_LogPrint(LPRINT_LOGNORM, "%s", buf); |
350 | 350 |
351 cmdline = from_utf8(hook_command); | 351 cmdline = from_utf8(hook_command); |
352 process_command(cmdline, TRUE); // XXX Note: /quit won't work. | 352 if (process_command(cmdline, TRUE) == 255) |
353 mcabber_set_terminate_ui(); | |
353 | 354 |
354 g_free(cmdline); | 355 g_free(cmdline); |
355 g_free(buf); | 356 g_free(buf); |
356 } | 357 } |
357 | 358 |