From d058096aaaa75321c6b45f7acec8c5191b657cf0 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 5 Mar 2016 02:39:11 -0600 Subject: [PATCH] invite: broadcast INVITE messages instead of using point to point routing, to facilitate invite-notify --- modules/m_invite.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/m_invite.c b/modules/m_invite.c index 37b5b8d8..fadbd637 100644 --- a/modules/m_invite.c +++ b/modules/m_invite.c @@ -215,11 +215,10 @@ m_invite(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source if(store_invite) 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); - } + + sendto_server(source_p, chptr, CAP_TS6, 0, ":%s INVITE %s %s %lu", + use_id(source_p), use_id(target_p), + chptr->chname, (unsigned long) chptr->channelts); return 0; }