- {
- if (!add_invite(chptr, target_p))
- return;
-
- sendto_channel_local_with_capability(source_p, CHFL_CHANOP, 0, CAP_INVITE_NOTIFY, chptr,
- ":%s NOTICE %s :%s is inviting %s to %s.",
- me.name, chptr->chname, source_p->name, target_p->name, chptr->chname);
- sendto_channel_local_with_capability(source_p, CHFL_CHANOP, CAP_INVITE_NOTIFY, 0, chptr,
- ":%s!%s@%s INVITE %s %s", source_p->name, source_p->username,
- source_p->host, target_p->name, chptr->chname);
- }
+ add_invite(chptr, target_p);
+ }
+ else if (target_p->from != client_p)
+ {
+ sendto_one_prefix(target_p, source_p, "INVITE", "%s %lu",
+ chptr->chname, (unsigned long) chptr->channelts);