added MODE_HALFOP (+h, %)
[ircu2.10.12-pk.git] / ircd / m_invite.c
index 9308007cd52b9703ea15e9ed2c0cc9afc9a5c960..2e9cc0570061bcfb82edee4e98fdedd9a23e8069 100644 (file)
@@ -159,7 +159,7 @@ int m_invite(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
     return 0;
   }
 
     return 0;
   }
 
-  if (!is_chan_op(sptr, chptr)) {
+  if (!is_chan_op(sptr, chptr) && !is_halfop(sptr, chptr)) {
     send_reply(sptr, ERR_CHANOPRIVSNEEDED, chptr->chname);
     return 0;
   }
     send_reply(sptr, ERR_CHANOPRIVSNEEDED, chptr->chname);
     return 0;
   }