summaryrefslogtreecommitdiff
path: root/xmpp/stream_pair.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/stream_pair.go')
-rw-r--r--xmpp/stream_pair.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp/stream_pair.go b/xmpp/stream_pair.go
index 8f70318..8ec06a6 100644
--- a/xmpp/stream_pair.go
+++ b/xmpp/stream_pair.go
@@ -28,7 +28,7 @@ func runStreamPair(s *session) {
}
if buf.isComplete() {
element := buf.reset()
- route(element, getRoutingTable())
+ route(s, element, getRoutingTable())
}
}
}
@@ -91,7 +91,7 @@ func closeStream(s *session) {
}
}
-func streamFeaturesHandler(e []xml.Token) {
+func streamFeaturesHandler(s *session, e []xml.Token) {
sasl := hasSaslPlain(e)
if sasl {
log.Println("Stream is compatible with SASL PLAIN mechanism")