Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit ff28a32d070e2c8903ac8921f4bfa1ba8b5c7173 Author: tytan652 <17492366+tytan652@users.noreply.github.com> Date: Tue Jul 20 23:39:14 2021 +0000 Fix XMPP parseNick function (#1547) diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 89a4874..07ae8a2 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -3857 +3857 @@ 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