- sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
- me.name, source_p->name, parv[2]);
+ if(IsOverride(source_p))
+ sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+ "%s is overriding INVITE [%s] on [%s]",
+ get_oper_name(source_p), target_p->name, chptr->chname);
+ else
+ {
+ sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
+ me.name, source_p->name, parv[2]);
+ return 0;
+ }
+ }
+
+ if (IsSetNoInvite(target_p))
+ {
+ sendto_one_numeric(source_p, ERR_NOINVITE,
+ form_str(ERR_NOINVITE),
+ target_p->name);