diff --git a/include/hook.h b/include/hook.h index 83aadd45..f7a6e231 100644 --- a/include/hook.h +++ b/include/hook.h @@ -42,12 +42,19 @@ void add_hook(const char *name, hookfn fn); void remove_hook(const char *name, hookfn fn); void call_hook(int id, void *arg); +typedef struct +{ + struct Client *client; + void *arg1; + void *arg2; +} hook_data; + typedef struct { struct Client *client; const void *arg1; const void *arg2; -} hook_data; +} hook_cdata; typedef struct { diff --git a/modules/m_links.c b/modules/m_links.c index 03e79571..3893e402 100644 --- a/modules/m_links.c +++ b/modules/m_links.c @@ -82,7 +82,7 @@ mo_links(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source const char *mask = ""; struct Client *target_p; char clean_mask[2 * HOSTLEN + 4]; - hook_data hd; + hook_cdata hd; rb_dlink_node *ptr;