diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-26 16:30:10 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-26 16:30:10 +0100 |
commit | f3f1b8d981d818b38713fe84deb206720b0fcb10 (patch) | |
tree | 7fd0f5d3e71b3553a4c57db71cb01d2426075967 /connector/xmpp | |
parent | 67c7f7361d63a282788f159494a6f43172c8806a (diff) | |
download | easybridge-f3f1b8d981d818b38713fe84deb206720b0fcb10.tar.gz easybridge-f3f1b8d981d818b38713fe84deb206720b0fcb10.zip |
Room autorejoin
Diffstat (limited to 'connector/xmpp')
-rw-r--r-- | connector/xmpp/xmpp.go | 3 |
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 { |