]> jfr.im git - solanum.git/blobdiff - modules/core/m_kick.c
m_info: Correct description of general::client_exit like in example confs.
[solanum.git] / modules / core / m_kick.c
index 88befacdb47e4e0c99c14ac55ec27bedcb41ba7c..eb72d1c9cbbe1d59e3154d2d5a610fc9f4840379 100644 (file)
@@ -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;