From da4dcec14d7ea865d75cb84914c7c0507a1001d2 Mon Sep 17 00:00:00 2001 From: tytan652 <17492366+tytan652@users.noreply.github.com> Date: Tue, 20 Jul 2021 23:39:14 +0200 Subject: Fix XMPP parseNick function (#1547) --- bridge/xmpp/xmpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 89a48742..07ae8a28 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -385,7 +385,7 @@ func (b *Bxmpp) handleUploadFile(msg *config.Message) error { func (b *Bxmpp) parseNick(remote string) string { s := strings.Split(remote, "@") - if len(s) > 0 { + if len(s) > 1 { s = strings.Split(s[1], "/") if len(s) == 2 { return s[1] // nick -- cgit v1.2.3