From 6ca4dec95a74f181ff13f4a701e031154c0ef340 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 6 Dec 2010 22:57:04 -0600 Subject: [PATCH] Extend hook_data_channel_activity moduledata with membership struct. --- include/hook.h | 1 + modules/core/m_kick.c | 1 + 2 files changed, 2 insertions(+) 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;