[MOD] Change media path, connect to component through another address

This commit is contained in:
lda 2025-01-06 17:09:36 +00:00
commit 5e1931a19f
9 changed files with 30 additions and 9 deletions

View file

@ -223,9 +223,11 @@ Main(Array *args, HashMap *env)
Log(LOG_NOTICE, "Connecting to XMPP...");
jabber = XMPPInitialiseCompStream(
parsee_conf->component_addr,
parsee_conf->component_host,
parsee_conf->component_port
);
Log(LOG_NOTICE, "Connecting to XMPP... %p", jabber);
if (!XMPPAuthenticateCompStream(
jabber,
parsee_conf->shared_comp_secret
@ -290,7 +292,6 @@ Main(Array *args, HashMap *env)
{
char *parsee = ParseeMXID(conf.handlerArgs);
/* TODO: An hardcoded avatar like this sucks. */
ASSetAvatar(parsee_conf,
parsee,
"mxc://tedomum.net/"