summaryrefslogtreecommitdiff
path: root/xmpp/router.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-06-30 20:40:47 +0200
committerxengineering <me@xengineering.eu>2023-06-30 20:40:47 +0200
commitdee833b803494ce962c577ddf950795a2fd490ae (patch)
treef353e8c8d653d9d94ab7e45a624ac8bd27f0e32f /xmpp/router.go
parente2c057571ae309cf503851ab8f63c2159f2ef4bc (diff)
downloadlimox-dee833b803494ce962c577ddf950795a2fd490ae.tar
limox-dee833b803494ce962c577ddf950795a2fd490ae.tar.zst
limox-dee833b803494ce962c577ddf950795a2fd490ae.zip
Send initial presence after resource result
This completes the connection process.
Diffstat (limited to 'xmpp/router.go')
-rw-r--r--xmpp/router.go9
1 files changed, 1 insertions, 8 deletions
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.