From: William Pitcock Date: Tue, 7 Dec 2010 04:57:04 +0000 (-0600) Subject: Extend hook_data_channel_activity moduledata with membership struct. X-Git-Url: https://jfr.im/git/solanum.git/commitdiff_plain/6ca4dec95a74f181ff13f4a701e031154c0ef340 Extend hook_data_channel_activity moduledata with membership struct. --- 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;