From b189adf630e0d6216a6014424ce8d93e45d6faac Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 29 Dec 2012 22:12:50 +0000 Subject: - m_invite.c: fixed broken CHWALL invite notice for invitees that are on a remote server git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1721 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/m_invite.c | 18 ++++-------------- 1 file 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); } -- cgit