diff options
Diffstat (limited to 'connector')
-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 { |