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"`
|
To string `xml:"to,attr,omitempty"`
|
||||||
From string `xml:"from,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{}
|
var v interface{}
|
||||||
switch start.Name.Local {
|
switch start.Name.Local {
|
||||||
|
case "error":
|
||||||
|
v = &Error{}
|
||||||
case "iq":
|
case "iq":
|
||||||
v = &Iq{}
|
v = &Iq{}
|
||||||
case "message":
|
case "message":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue