forked from chteufleur/go-xmpp
Add <error/> stanza.
This commit is contained in:
parent
b13d0baad0
commit
4759e83863
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in New Issue