]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/hook.c
Update NEWS.
[irc/rqf/shadowircd.git] / src / hook.c
index 8e92bdaed1286d39894dab991d7ac796346fc934..79a9a1078ef2d74c3d646c3be7e588a45d74af89 100644 (file)
@@ -38,7 +38,7 @@
  */
 #include "stdinc.h"
 #include "hook.h"
-#include "irc_string.h"
+#include "match.h"
 
 hook *hooks;
 
@@ -59,6 +59,7 @@ int h_burst_finished;
 int h_server_introduced;
 int h_server_eob;
 int h_client_exit;
+int h_umode_changed;
 int h_new_local_user;
 int h_new_remote_user;
 int h_introduce_client;
@@ -66,7 +67,7 @@ int h_introduce_client;
 void
 init_hook(void)
 {
-       hooks = MyMalloc(sizeof(hook) * HOOK_INCREMENT);
+       hooks = rb_malloc(sizeof(hook) * HOOK_INCREMENT);
 
 #ifdef USE_IODEBUG_HOOKS
        h_iosend_id = register_hook("iosend");
@@ -94,7 +95,7 @@ grow_hooktable(void)
 {
        hook *newhooks;
 
-       newhooks = MyMalloc(sizeof(hook) * (max_hooks + HOOK_INCREMENT));
+       newhooks = rb_malloc(sizeof(hook) * (max_hooks + HOOK_INCREMENT));
        memcpy(newhooks, hooks, sizeof(hook) * num_hooks);
 
        rb_free(hooks);
@@ -156,7 +157,7 @@ register_hook(const char *name)
        if((i = find_hook(name)) < 0)
        {
                i = find_freehookslot();
-               DupString(hooks[i].name, name);
+               hooks[i].name = rb_strdup(name);
                num_hooks++;
        }