Add rendering forms to messages, add configuring mucs, add getting muc affiliations, add a bunch of other stuff idk man check the diff
This commit is contained in:
1 parent
7a875f84a5
commit
34b885a770
19 files changed
+706
-101
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package main
|
||||
|
||||
// Implementation of XEP-0045 admin
|
||||
// https://xmpp.org/extensions/xep-0045.html
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"gosrc.io/xmpp/stanza"
|
||||
)
|
||||
|
||||
type MucOwnerQuery struct {
|
||||
XMLName xml.Name `xml:"http://jabber.org/protocol/muc#owner query"`
|
||||
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
|
||||
Form stanza.Form `xml:"jabber:x:data x,omitempty"`
|
||||
}
|
||||
|
||||
func (v *MucOwnerQuery) Namespace() string {
|
||||
return v.XMLName.Space
|
||||
}
|
||||
|
||||
func (v *MucOwnerQuery) GetSet() *stanza.ResultSet {
|
||||
return v.ResultSet
|
||||
}
|
||||
|
||||
func init() {
|
||||
stanza.TypeRegistry.MapExtension(stanza.PKTIQ, xml.Name{Space: "http://jabber.org/protocol/muc#owner", Local: "query"}, MucOwnerQuery{})
|
||||
}
|
||||
Reference in new issue
Block a user