Skip to content

Commit

Permalink
similar fixes for presence
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatlin C Johnson committed Jun 17, 2012
1 parent 1dd8c2e commit cb6591b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions xmpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,15 +334,15 @@ type clientText struct {

type clientPresence struct {
XMLName xml.Name `xml:"jabber:client presence"`
From string `xml:",attr"`
Id string `xml:",attr"`
To string `xml:",attr"`
Type string `xml:",attr"` // error, probe, subscribe, subscribed, unavailable, unsubscribe, unsubscribed
Lang string `xml:",attr"`
From string `xml:"from,attr"`
Id string `xml:"id,attr"`
To string `xml:"to,attr"`
Type string `xml:"type,attr"` // error, probe, subscribe, subscribed, unavailable, unsubscribe, unsubscribed
Lang string `xml:"lang,attr"`

Show string // away, chat, dnd, xa
Status string // sb []clientText
Priority string
Show string `xml:"show,attr"`// away, chat, dnd, xa
Status string `xml:"status,attr"`// sb []clientText
Priority string `xml:"priority,attr"`
Error *clientError
}

Expand Down

0 comments on commit cb6591b

Please sign in to comment.