--- a/mcabber/src/hooks.c Sun Oct 25 23:53:54 2009 +0100
+++ b/mcabber/src/hooks.c Mon Nov 02 19:11:29 2009 +0200
@@ -527,17 +527,6 @@
char *buf;
char *cmdline;
- hook_command = settings_opt_get(hookname);
- if (!hook_command)
- return;
-
- buf = g_strdup_printf("Running %s...", hookname);
- scr_LogPrint(LPRINT_LOGNORM, "%s", buf);
-
- cmdline = from_utf8(hook_command);
- if (process_command(cmdline, TRUE) == 255)
- mcabber_set_terminate_ui();
-
#ifdef MODULES_ENABLE
{
GSList *h = hk_handler_queue;
@@ -556,6 +545,17 @@
}
#endif
+ hook_command = settings_opt_get(hookname);
+ if (!hook_command)
+ return;
+
+ buf = g_strdup_printf("Running %s...", hookname);
+ scr_LogPrint(LPRINT_LOGNORM, "%s", buf);
+
+ cmdline = from_utf8(hook_command);
+ if (process_command(cmdline, TRUE) == 255)
+ mcabber_set_terminate_ui();
+
g_free(cmdline);
g_free(buf);
}