1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 21:43:13 +02:00

Don't send UID's to old non-SJOIN clients (do we really want to support these? hmm..)

This commit is contained in:
Bram Matthys
2016-12-05 09:33:13 +01:00
parent 41bd7ad4b9
commit 65caabbb97
+3 -3
View File
@@ -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);