]> jfr.im git - solanum.git/commitdiff
Extend hook_data_channel_activity moduledata with membership struct.
authorWilliam Pitcock <redacted>
Tue, 7 Dec 2010 04:57:04 +0000 (22:57 -0600)
committerWilliam Pitcock <redacted>
Tue, 7 Dec 2010 04:57:04 +0000 (22:57 -0600)
include/hook.h
modules/core/m_kick.c

index 120fe7c26834913672a0b6d2ec48a8d60804a2fd..7143d7ab394d2eccd4f64e1081570b9a71d78297 100644 (file)
@@ -75,6 +75,7 @@ typedef struct
 {
        struct Client *client;
        struct Channel *chptr;
+       struct membership *msptr;
        struct Client *target;
        int approved;
 } hook_data_channel_approval;
index 88befacdb47e4e0c99c14ac55ec27bedcb41ba7c..1567f2f9ba062b8d4c5531f3d937e72c21a007f9 100644 (file)
@@ -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;