diff --git a/include/hook.h b/include/hook.h index 120fe7c2..7143d7ab 100644 --- a/include/hook.h +++ b/include/hook.h @@ -75,6 +75,7 @@ typedef struct { struct Client *client; struct Channel *chptr; + struct membership *msptr; struct Client *target; int approved; } hook_data_channel_approval; diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c index 88befacd..1567f2f9 100644 --- a/modules/core/m_kick.c +++ b/modules/core/m_kick.c @@ -164,6 +164,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p hookdata.client = source_p; hookdata.chptr = chptr; + hookdata.msptr = msptr; hookdata.target = who; hookdata.approved = 1;