X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fxmpp%2Fserv_xmpp.c;h=2bbfcff1f0ff8258256dec8a05efc6d3f6bb4d87;hp=d62bcfe468ee99ced792b01fde6632897838bbb7;hb=0081bc5d7e565dbd0bf66432d12b5ae9c8b1a947;hpb=2976b35710982e72d499db16d648eee7b2cfaa94 diff --git a/citadel/modules/xmpp/serv_xmpp.c b/citadel/modules/xmpp/serv_xmpp.c index d62bcfe46..2bbfcff1f 100644 --- a/citadel/modules/xmpp/serv_xmpp.c +++ b/citadel/modules/xmpp/serv_xmpp.c @@ -406,16 +406,14 @@ void xmpp_xml_end(void *data, const char *supplied_el) { ) { /* If the client has not specified a client resource, generate one */ - if (IsEmptyStr(XMPP->iq_client_resource)) { snprintf(XMPP->iq_client_resource, sizeof XMPP->iq_client_resource, "%d", CC->cs_pid); } - /* Generate the "full JID" of the client resource */ + /* Generate the "full JID" of the client (user@host/resource) */ snprintf(XMPP->client_jid, sizeof XMPP->client_jid, "%s/%s", CC->cs_inet_email, XMPP->iq_client_resource); /* Tell the client what its JID is */ - cprintf("", xmlesc(xmlbuf, XMPP->iq_id, sizeof xmlbuf)); cprintf(""); cprintf("%s", xmlesc(xmlbuf, XMPP->client_jid, sizeof xmlbuf));