0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-03 22:28:52 +02:00

Merge pull request #82 from grawity/sasl-send-conn-info

m_sasl: send information about the client connection
This commit is contained in:
William Pitcock 2015-02-18 12:29:57 -06:00
commit dd28e3f2a4

View file

@ -129,6 +129,9 @@ m_authenticate(struct Client *client_p, struct Client *source_p,
if(agent_p == NULL)
{
sendto_server(NULL, NULL, CAP_TS6|CAP_ENCAP, NOCAPS, ":%s ENCAP * SASL %s * H %s %s", me.id,
source_p->id, source_p->host, source_p->sockhost);
if (!strcmp(parv[1], "EXTERNAL") && source_p->certfp != NULL)
sendto_one(saslserv_p, ":%s ENCAP %s SASL %s %s S %s %s", me.id, saslserv_p->servptr->name,
source_p->id, saslserv_p->id,