diff options
-rw-r--r-- | modules/m_invite.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/modules/m_invite.c b/modules/m_invite.c index 45ec444..21c9ac9 100644 --- a/modules/m_invite.c +++ b/modules/m_invite.c @@ -125,21 +125,11 @@ m_invite(struct Client *client_p, struct Client *source_p, if (chptr->mode.mode & MODE_INVITEONLY) { - sendto_channel_local(CHFL_CHANOP, 0, chptr, - ":%s NOTICE @%s :%s is inviting %s to %s.", - me.name, chptr->chname, source_p->name, - target_p->name, chptr->chname); - - sendto_channel_remote(source_p, client_p, CHFL_CHANOP, - CAP_TS6, NOCAPS, chptr, - ":%s NOTICE @%s :%s is inviting %s to %s.", - ID(&me), chptr->chname, source_p->name, - target_p->name, chptr->chname); - sendto_channel_remote(source_p, client_p, CHFL_CHANOP, - NOCAPS, CAP_TS6, chptr, - ":%s NOTICE @%s :%s is inviting %s to %s.", - me.name, chptr->chname, source_p->name, + sendto_channel_butone(NULL, &me, chptr, CHFL_CHANOP, + "NOTICE @%s :%s is inviting %s to %s.", + chptr->chname, source_p->name, target_p->name, chptr->chname); + /* Add the invite if channel is +i */ add_invite(chptr, target_p); } |