mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-14 00:45:10 +00:00
[ADD/WIP] Continue MUCwerk
oh man this is gonna be painful to do... xmpp is fine iff youre doing DMs isnt it?
This commit is contained in:
parent
3ac11fd269
commit
d3b7f2fee0
19 changed files with 707 additions and 44 deletions
|
|
@ -56,7 +56,6 @@ XMPPInitialiseCompStream(char *host, int port)
|
|||
sd = -1;
|
||||
continue;
|
||||
}
|
||||
Log(LOG_INFO, "Connected to port %s", serv);
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
@ -68,7 +67,6 @@ XMPPInitialiseCompStream(char *host, int port)
|
|||
freeaddrinfo(res0);
|
||||
|
||||
stream = StreamFd(sd);
|
||||
Log(LOG_INFO, "Got %d via %p", sd, stream);
|
||||
if (!stream)
|
||||
{
|
||||
close(sd);
|
||||
|
|
@ -143,7 +141,7 @@ XMPPAuthenticateCompStream(XMPPComponent *comp, char *shared)
|
|||
|
||||
stream_id = StrDuplicate(HashMapGet(ev->attrs, "id"));
|
||||
handshake = ComputeHandshake(shared, stream_id);
|
||||
/* y no stream id */
|
||||
|
||||
Log(LOG_NOTICE, "- sID='%s'", stream_id);
|
||||
StreamPrintf(stream, "<handshake>%s</handshake>", handshake);
|
||||
StreamFlush(stream);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue