]> jfr.im git - irc/freenode/solanum.git/commitdiff
Actually use modules' declared hook priorities
authorDoug Freed <redacted>
Wed, 1 Jul 2020 19:43:48 +0000 (19:43 +0000)
committerDoug Freed <redacted>
Wed, 1 Jul 2020 19:43:48 +0000 (19:43 +0000)
ircd/modules.c

index d2c431a676eeca77784e30c600185e6c77c0d778..4fe68e310399b3ab993c935c8320cb020b1df993 100644 (file)
@@ -642,7 +642,7 @@ load_a_module(const char *path, bool warn, int origin, bool core)
                                        int priority = m->priority;
                                        if (priority == 0)
                                                priority = HOOK_NORMAL;
-                                       add_hook(m->hapi_name, m->fn);
+                                       add_hook_prio(m->hapi_name, m->fn, priority);
                                }
                        }