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
+7
-2
@@ -11,8 +11,9 @@ import (
|
||||
type MucUser struct {
|
||||
stanza.PresExtension
|
||||
stanza.MsgExtension
|
||||
XMLName xml.Name `xml:"http://jabber.org/protocol/muc#user x"`
|
||||
MucUserItem MucUserItem `xml:"item,omitempty"`
|
||||
XMLName xml.Name `xml:"http://jabber.org/protocol/muc#user x"`
|
||||
StatusCodes []MucUserStatusCode `xml:"status,omitempty"`
|
||||
MucUserItem MucUserItem `xml:"item,omitempty"`
|
||||
}
|
||||
|
||||
type MucUserItem struct {
|
||||
@@ -29,6 +30,10 @@ type Actor struct {
|
||||
Nick string `xml:"nick,attr"`
|
||||
}
|
||||
|
||||
type MucUserStatusCode struct {
|
||||
Code string `xml:"code,attr"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
stanza.TypeRegistry.MapExtension(stanza.PKTPresence, xml.Name{Space: "http://jabber.org/protocol/muc#user", Local: "x"}, MucUser{})
|
||||
stanza.TypeRegistry.MapExtension(stanza.PKTMessage, xml.Name{Space: "http://jabber.org/protocol/muc#user", Local: "x"}, MucUser{})
|
||||
|
||||
Reference in new issue
Block a user