changeset 1642:cd67b29e04e3

Fix not execution of HOOK_INTERNAL
author Myhailo Danylenko <isbear@ukrpost.net>
date Mon, 02 Nov 2009 19:11:29 +0200
parents c3c7d6d0348f
children 8c0e173d7d6a
files mcabber/src/hooks.c
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }