From 65caabbb97e5253f1cb546a4b5a55f74caa6efbe Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 5 Dec 2016 09:33:13 +0100 Subject: [PATCH] Don't send UID's to old non-SJOIN clients (do we really want to support these? hmm..) --- src/modules/m_sjoin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/m_sjoin.c b/src/modules/m_sjoin.c index f39431eb1..5c495115e 100644 --- a/src/modules/m_sjoin.c +++ b/src/modules/m_sjoin.c @@ -488,15 +488,15 @@ CMD_FUNC(m_sjoin) if (k != 0) { if (modeflags & (CHFL_CHANOP|CHFL_CHANPROT|CHFL_CHANOWNER|CHFL_HALFOP|CHFL_VOICE)) - sendto_channel_butserv(chptr, acptr, ":%s JOIN :%s", nick, chptr->chname); + sendto_channel_butserv(chptr, acptr, ":%s JOIN :%s", acptr->name, chptr->chname); else sendto_chanops_butone(NULL, chptr, ":%s!%s@%s JOIN :%s", acptr->name, acptr->user->username, GetHost(acptr), chptr->chname); } else - sendto_channel_butserv(chptr, acptr, ":%s JOIN :%s", nick, chptr->chname); + sendto_channel_butserv(chptr, acptr, ":%s JOIN :%s", acptr->name, chptr->chname); } sendto_server(cptr, 0, PROTO_SJOIN, ":%s JOIN %s", - nick, chptr->chname); + acptr->name, chptr->chname); CheckStatus('q', CHFL_CHANOWNER); CheckStatus('a', CHFL_CHANPROT); CheckStatus('o', CHFL_CHANOP);