aboutsummaryrefslogtreecommitdiff
path: root/connector
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-26 16:30:10 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-26 16:30:10 +0100
commitf3f1b8d981d818b38713fe84deb206720b0fcb10 (patch)
tree7fd0f5d3e71b3553a4c57db71cb01d2426075967 /connector
parent67c7f7361d63a282788f159494a6f43172c8806a (diff)
downloadeasybridge-f3f1b8d981d818b38713fe84deb206720b0fcb10.tar.gz
easybridge-f3f1b8d981d818b38713fe84deb206720b0fcb10.zip
Room autorejoin
Diffstat (limited to 'connector')
-rw-r--r--connector/xmpp/xmpp.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/connector/xmpp/xmpp.go b/connector/xmpp/xmpp.go
index 7e35135..727c4d8 100644
--- a/connector/xmpp/xmpp.go
+++ b/connector/xmpp/xmpp.go
@@ -81,7 +81,8 @@ func (xm *XMPP) Configure(c Configuration) error {
return fmt.Errorf("JID %s not on server %s", xm.jid, xm.server)
}
xm.jid_localpart = jid_parts[0]
- xm.nickname = xm.jid_localpart
+
+ xm.nickname = c.GetString("nickname", xm.jid_locakpart)
xm.password, err = c.GetString("password")
if err != nil {