From: Art Cancro Date: Wed, 19 Dec 2018 05:42:32 +0000 (-0500) Subject: comment change X-Git-Tag: v939~327 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=0081bc5d7e565dbd0bf66432d12b5ae9c8b1a947 comment change --- 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));