summaryrefslogtreecommitdiffstats
path: root/bridge/xmpp/xmpp.go
diff options
context:
space:
mode:
authortytan652 <17492366+tytan652@users.noreply.github.com>2021-07-20 23:39:14 +0200
committerGitHub <noreply@github.com>2021-07-20 23:39:14 +0200
commitda4dcec14d7ea865d75cb84914c7c0507a1001d2 (patch)
tree6d0cfc82479483f393ac0f562faa90e82305a5d9 /bridge/xmpp/xmpp.go
parent761c0b79c5c6330d078e96f2ec553221b5440601 (diff)
downloadmatterbridge-msglm-da4dcec14d7ea865d75cb84914c7c0507a1001d2.tar.gz
matterbridge-msglm-da4dcec14d7ea865d75cb84914c7c0507a1001d2.tar.bz2
matterbridge-msglm-da4dcec14d7ea865d75cb84914c7c0507a1001d2.zip
Fix XMPP parseNick function (#1547)
Diffstat (limited to 'bridge/xmpp/xmpp.go')
-rw-r--r--bridge/xmpp/xmpp.go2
1 files changed, 1 insertions, 1 deletions
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