From dee833b803494ce962c577ddf950795a2fd490ae Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 30 Jun 2023 20:40:47 +0200 Subject: Send initial presence after resource result This completes the connection process. --- xmpp/router.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'xmpp/router.go') diff --git a/xmpp/router.go b/xmpp/router.go index 1d9c3e5..1e21c9b 100644 --- a/xmpp/router.go +++ b/xmpp/router.go @@ -25,17 +25,10 @@ func getRoutingTable() routingTable { {xml.Name{`http://etherx.jabber.org/streams`, `features`}, streamFeaturesHandler}, {xml.Name{`urn:ietf:params:xml:ns:xmpp-sasl`, `success`}, saslSuccessHandler}, {xml.Name{`urn:ietf:params:xml:ns:xmpp-sasl`, `failure`}, saslFailureHandler}, - {xml.Name{`jabber:client`, `iq`}, voidIq}, + {xml.Name{`jabber:client`, `iq`}, iqHandler}, } } -// voidIq just logs that an IQ element was received. In the current state of -// the software there is no further processing. -// TODO process IQs for error handling and further information processing. -func voidIq(s *session, e []xml.Token) { - log.Println("Received IQ element") -} - // route determines the correct handler function for the given XML element by a // given routingTable. In addition it executes the determined handler function. // If no handler function is found an error message is send via the log module. -- cgit v1.2.3-70-g09d2