summaryrefslogtreecommitdiff
path: root/xmpp/streams.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/streams.go')
-rw-r--r--xmpp/streams.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/xmpp/streams.go b/xmpp/streams.go
index 18a5e6a..ec16a02 100644
--- a/xmpp/streams.go
+++ b/xmpp/streams.go
@@ -11,8 +11,6 @@ type streamFeatures struct {
}
func handleStreamFeatures(s *session, f streamFeatures) {
- log.Print(f)
-
if len(f.SaslMechanisms) > 0 {
for _, v := range f.SaslMechanisms {
if v == "PLAIN" {
@@ -64,27 +62,3 @@ func closeStream(e *xml.Encoder) {
log.Println("Could not flush after stream end!")
}
}
-
-func iqHandler(s *session, e []xml.Token) {
- isResult := false
- idMatches := false
-
- result := xml.Attr{xml.Name{"", "type"}, "result"}
- id := xml.Attr{xml.Name{"", "id"}, s.resourceReq}
-
- switch start := e[0].(type) {
- case xml.StartElement:
- for _, v := range start.Attr {
- if v == result {
- isResult = true
- }
- if v == id {
- idMatches = true
- }
- }
-
- if isResult && idMatches {
- s.sendPresence()
- }
- }
-}