X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/5f8d323c59df3d543157cda302261e3307167b5b..b2c208be091670e3c5259eba77187bae6ac6eece:/modules/core/m_kick.c diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c index 88befacd..eb72d1c9 100644 --- a/modules/core/m_kick.c +++ b/modules/core/m_kick.c @@ -97,7 +97,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p return 0; } - if(!is_chanop(msptr)) + if(get_channel_access(source_p, msptr) < CHFL_CHANOP) { if(MyConnect(source_p)) { @@ -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;