diff options
-rw-r--r-- | xmpp/stream_pair.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmpp/stream_pair.go b/xmpp/stream_pair.go index f1de345..693972e 100644 --- a/xmpp/stream_pair.go +++ b/xmpp/stream_pair.go @@ -93,10 +93,10 @@ func closeStream(s *session, end xml.EndElement) { } func streamFeaturesHandler(s *session, e []xml.Token) { - sasl := hasSaslPlain(e) - if sasl { + if hasSaslPlain(e) { s.sasl() - } else { - log.Println("Stream is not compatible with SASL PLAIN mechanism!") + return } + + log.Println("Stream has no implemented features!") } |