1
0
Fork 0

Add <error/> stanza.

This commit is contained in:
Matt Goodall 2012-07-09 14:47:50 +01:00
parent b13d0baad0
commit 4759e83863
2 changed files with 7 additions and 0 deletions

View File

@ -48,3 +48,8 @@ type Presence struct {
To string `xml:"to,attr,omitempty"`
From string `xml:"from,attr,omitempty"`
}
// XMPP <error/> stanza.
type Error struct {
XMLName xml.Name `xml:"error"`
}

View File

@ -115,6 +115,8 @@ func (x *XMPP) receiver() {
var v interface{}
switch start.Name.Local {
case "error":
v = &Error{}
case "iq":
v = &Iq{}
case "message":