diff options
| -rw-r--r-- | xmpp/router.go | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/xmpp/router.go b/xmpp/router.go index 9d69033..1d9c3e5 100644 --- a/xmpp/router.go +++ b/xmpp/router.go @@ -25,9 +25,17 @@ 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},  	}  } +// 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.  | 
