X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fxmpp%2Fserv_xmpp.c;h=7e42db01a3af37a1b0855338adf22f3663c259f0;hb=91b0bcd852c106bb1221b6f605603815e21cbdeb;hp=cc75f6dd190751d88f112fa6c91035277d28c2d2;hpb=5e630368347015f99043c6edbc8c1b474cf892ff;p=citadel.git diff --git a/citadel/modules/xmpp/serv_xmpp.c b/citadel/modules/xmpp/serv_xmpp.c index cc75f6dd1..7e42db01a 100644 --- a/citadel/modules/xmpp/serv_xmpp.c +++ b/citadel/modules/xmpp/serv_xmpp.c @@ -409,20 +409,11 @@ 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)) { - generate_uuid(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 */ - - snprintf(XMPP->client_jid, sizeof XMPP->client_jid, - "%s/%s", - CC->cs_inet_email, - XMPP->iq_client_resource - ); - - /* FIXME look here ... there's nothing before the slash ... wtf? - syslog(LOG_DEBUG, "\033[31m client resource = '%s' \033[0m", XMPP->client_jid); - */ + 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 */