X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/8e43b0b4146cdbacec61e83e8b8251c0b5a090c9..0accfaf36f2acc2a8a8227b79cf0ff4ade259ae8:/src/hook.c diff --git a/src/hook.c b/src/hook.c index ea2ecda..79a9a10 100644 --- a/src/hook.c +++ b/src/hook.c @@ -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; @@ -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++; }