Fix XMPP parseNick function

This commit is contained in:
tytan652
2021-07-13 16:06:12 +02:00
parent 66b6f9749d
commit 7218ff125e

View File

@@ -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