aboutsummaryrefslogtreecommitdiff
path: root/xmpp/gateway
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/gateway')
-rw-r--r--xmpp/gateway/gateway.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmpp/gateway/gateway.go b/xmpp/gateway/gateway.go
index 1a37cc7..9007f6b 100644
--- a/xmpp/gateway/gateway.go
+++ b/xmpp/gateway/gateway.go
@@ -328,6 +328,9 @@ var SPImmed = args.NewBool(args.Default(true))
// SPMUCAffiliation is a XEP-0045 MUC affiliation
var SPMUCAffiliation = args.NewString()
+// SPMUCNick is a XEP-0045 MUC user nick
+var SPMUCNick = args.NewString()
+
// SPMUCJid is a real jid of a MUC member
var SPMUCJid = args.NewString()
@@ -398,6 +401,9 @@ func newPresence(bareJid string, to string, args ...args.V) stanza.Presence {
Role: affilationToRole(affiliation),
},
}
+ if SPMUCNick.IsSet(args) {
+ userExt.Item.Nick = SPMUCNick.Get(args)
+ }
if SPMUCJid.IsSet(args) {
userExt.Item.Jid = SPMUCJid.Get(args)
}