]> jfr.im git - solanum.git/blobdiff - modules/core/m_kick.c
ircd/dns: same
[solanum.git] / modules / core / m_kick.c
index cf45f6363fb99250df799d9765c0965b38ae4d62..387534612a55a0800d06fd86722c109cc259fbfb 100644 (file)
@@ -97,7 +97,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                        return 0;
                }
 
-               if(get_channel_access(source_p, msptr) < CHFL_CHANOP)
+               if(get_channel_access(source_p, msptr, MODE_ADD) < CHFL_CHANOP)
                {
                        if(MyConnect(source_p))
                        {
@@ -167,6 +167,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                        hookdata.msptr = msptr;
                        hookdata.target = who;
                        hookdata.approved = 1;
+                       hookdata.dir = MODE_ADD;        /* ensure modules like override speak up */
 
                        call_hook(h_can_kick, &hookdata);