summaryrefslogtreecommitdiff
path: root/xmpp/routing.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/routing.go')
-rw-r--r--xmpp/routing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp/routing.go b/xmpp/routing.go
index b184b1c..a9dd8b6 100644
--- a/xmpp/routing.go
+++ b/xmpp/routing.go
@@ -23,10 +23,10 @@ func parse[T any](data T, s *xml.StartElement, d *xml.Decoder, c chan<- any) {
}
}
-func handle(element any) {
+func handle(s *session, element any) {
switch t := element.(type) {
case streamFeatures:
- log.Println("Handling stream features ...")
+ handleStreamFeatures(s, t)
default:
log.Printf("Unknown parsed element: %v", t)
}