Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_kick.c
index 4703216fd25b302775c27496d4c10e32bb4dcaba..6252247e3217db49270f8873873a51242858c44f 100644 (file)
@@ -136,11 +136,9 @@ int m_kick(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
   if (IsChannelService(who))
     return send_reply(sptr, ERR_ISCHANSERVICE, cli_name(who), chptr->chname);
 
-#ifdef NO_OPER_DEOP_LCHAN
   /* Prevent kicking opers from local channels -DM- */
-  if (IsOperOnLocalChannel(who, chptr->chname))
+  if (IsLocalChannel(chptr->chname) && HasPriv(who, PRIV_DEOP_LCHAN))
     return send_reply(sptr, ERR_ISOPERLCHAN, cli_name(who), chptr->chname);
-#endif
 
   /* check if kicked user is actually on the channel */
   if (!(member = find_member_link(chptr, who)) || IsZombie(member))