BOOKMARKS! BOOKMARKS! WE GOT BOOKMARKS PEOPLE
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
|
||||
type MucUser struct {
|
||||
stanza.PresExtension
|
||||
stanza.MsgExtension
|
||||
XMLName xml.Name `xml:"http://jabber.org/protocol/muc#user x"`
|
||||
MucUserItem MucUserItem `xml:"item,omitempty"`
|
||||
}
|
||||
@@ -19,9 +20,16 @@ type MucUserItem struct {
|
||||
Affiliation string `xml:"affiliation,attr,omitempty"` // TODO: Use enum
|
||||
Role string `xml:"role,attr,omitempty"` // TODO: Use enum
|
||||
JID string `xml:"jid,attr,omitempty"`
|
||||
Reason string `xml:"reason,omitempty"`
|
||||
Reason string `xml:"reason,omitempty"`
|
||||
Actor Actor `xml:"actor,omitempty"`
|
||||
}
|
||||
|
||||
type Actor struct {
|
||||
JID string `xml:"jid,attr"`
|
||||
Nick string `xml:"nick,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