summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-12-29 22:12:50 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-12-29 22:12:50 +0000
commitb189adf630e0d6216a6014424ce8d93e45d6faac (patch)
treeae6a083c6c4249246174498f2d09a9bb4b0c0275
parent584d1a6521b697fff1b2b604920b8bfe33ebb5ac (diff)
- 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
-rw-r--r--modules/m_invite.c18
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);
}