aboutsummaryrefslogtreecommitdiff
path: root/xmpp
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-06-30 03:33:51 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-06-30 03:33:51 +0300
commite2edbe37ea47eef9366a0d9d6b38228cdfec015a (patch)
tree500423cd451203cc500f9e97be99b5b30fa8f991 /xmpp
parent501c1a7daa44843b1c43502167750bbb3465555d (diff)
gofmt
Diffstat (limited to 'xmpp')
-rw-r--r--xmpp/gateway/gateway.go2
-rw-r--r--xmpp/handlers.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmpp/gateway/gateway.go b/xmpp/gateway/gateway.go
index 367a406..d4620e6 100644
--- a/xmpp/gateway/gateway.go
+++ b/xmpp/gateway/gateway.go
@@ -76,7 +76,7 @@ func SetNickname(to string, from string, nickname string, component *xmpp.Compon
Extensions: []stanza.MsgExtension{
stanza.PubSubEvent{
EventElement: stanza.ItemsEvent{
- Node: NSNick,
+ Node: NSNick,
Items: []stanza.ItemEvent{
stanza.ItemEvent{
Any: &stanza.Node{
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 1d8f2bd..7c671d9 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -474,7 +474,7 @@ func makeVCardPayload(typ byte, id, fn, photo, nickname, given, family, tel, inf
Node: NodeVCard4,
List: []stanza.Item{
stanza.Item{
- Id: id,
+ Id: id,
Any: &stanza.Node{
XMLName: xml.Name{Local: "vcard"},
Attrs: []xml.Attr{