From f3f1b8d981d818b38713fe84deb206720b0fcb10 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 26 Feb 2020 16:30:10 +0100 Subject: Room autorejoin --- connector/xmpp/xmpp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'connector/xmpp') 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 { -- cgit v1.2.3