]> jfr.im git - solanum.git/blobdiff - src/hook.c
Merge pull request #53 from ShadowNinja/clarify_U+R
[solanum.git] / src / hook.c
index ea2ecdaafb52dd1674b847923f11e1d8e865d4ea..24e924b6bc3f96dd7a00e670306a490ee59f2dfb 100644 (file)
@@ -38,7 +38,7 @@
  */
 #include "stdinc.h"
 #include "hook.h"
-#include "irc_string.h"
+#include "match.h"
 
 hook *hooks;
 
@@ -59,9 +59,15 @@ 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;
+int h_can_kick;
+int h_privmsg_user;
+int h_privmsg_channel;
+int h_conf_read_start;
+int h_conf_read_end;
 
 void
 init_hook(void)
@@ -84,6 +90,11 @@ init_hook(void)
        h_new_local_user = register_hook("new_local_user");
        h_new_remote_user = register_hook("new_remote_user");
        h_introduce_client = register_hook("introduce_client");
+       h_can_kick = register_hook("can_kick");
+       h_privmsg_user = register_hook("privmsg_user");
+       h_privmsg_channel = register_hook("privmsg_channel");
+       h_conf_read_start = register_hook("conf_read_start");
+       h_conf_read_end = register_hook("conf_read_end");
 }
 
 /* grow_hooktable()
@@ -156,7 +167,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++;
        }