uhh whats a submodule i have never heard of that bro
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package stanza
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
)
|
||||
|
||||
/*
|
||||
Support for:
|
||||
- XEP-0066 - Out of Band Data: https://xmpp.org/extensions/xep-0066.html
|
||||
*/
|
||||
|
||||
type OOB struct {
|
||||
MsgExtension
|
||||
XMLName xml.Name `xml:"jabber:x:oob x"`
|
||||
URL string `xml:"url"`
|
||||
Desc string `xml:"desc,omitempty"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
TypeRegistry.MapExtension(PKTMessage, xml.Name{Space: "jabber:x:oob", Local: "x"}, OOB{})
|
||||
}
|
||||
Reference in New Issue
Block a user