mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
Extend hook_data_channel_activity moduledata with membership struct.
This commit is contained in:
parent
83b72f917a
commit
6ca4dec95a
2 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,7 @@ typedef struct
|
||||||
{
|
{
|
||||||
struct Client *client;
|
struct Client *client;
|
||||||
struct Channel *chptr;
|
struct Channel *chptr;
|
||||||
|
struct membership *msptr;
|
||||||
struct Client *target;
|
struct Client *target;
|
||||||
int approved;
|
int approved;
|
||||||
} hook_data_channel_approval;
|
} hook_data_channel_approval;
|
||||||
|
|
|
@ -164,6 +164,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
||||||
|
|
||||||
hookdata.client = source_p;
|
hookdata.client = source_p;
|
||||||
hookdata.chptr = chptr;
|
hookdata.chptr = chptr;
|
||||||
|
hookdata.msptr = msptr;
|
||||||
hookdata.target = who;
|
hookdata.target = who;
|
||||||
hookdata.approved = 1;
|
hookdata.approved = 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue