summaryrefslogtreecommitdiff
path: root/xmpp/routing.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-04 21:24:04 +0200
committerxengineering <me@xengineering.eu>2023-07-04 21:24:04 +0200
commit2c71877e392da6c2691827160142e95142f7bea6 (patch)
treef7b3a0b9d8d98e422a5ca579fd8fbceb654ad0a6 /xmpp/routing.go
parente529bab2e5df93ff8e9fd415b9d65e9bb6d17695 (diff)
downloadlimox-2c71877e392da6c2691827160142e95142f7bea6.tar
limox-2c71877e392da6c2691827160142e95142f7bea6.tar.zst
limox-2c71877e392da6c2691827160142e95142f7bea6.zip
Re-implement SASL
Was broken because of switch to new RX concept.
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)
}