structs.go
changeset 102 872e936f9f3f
parent 100 24231ff0016c
child 105 aa895dfae3f6
--- a/structs.go	Sun Dec 16 14:37:43 2012 -0700
+++ b/structs.go	Sun Dec 16 15:15:59 2012 -0700
@@ -55,8 +55,8 @@
 }
 
 type Features struct {
-	Starttls   *starttls
-	Mechanisms mechs
+	Starttls   *starttls `xml:"urn:ietf:params:xml:ns:xmpp-tls starttls"`
+	Mechanisms mechs     `xml:"urn:ietf:params:xml:ns:xmpp-sasl mechanisms"`
 	Bind       *bindIq
 	Session    *Generic
 	Any        *Generic
@@ -274,7 +274,7 @@
 func (er *Error) Error() string {
 	buf, err := xml.Marshal(er)
 	if err != nil {
-		Warnf("double bad error: couldn't marshal error")
+		Warn.Logf("double bad error: couldn't marshal error")
 		return "unreadable error"
 	}
 	return string(buf)