summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank <fti7@users.noreply.github.com>2017-05-11 20:10:53 +0200
committerWim <wim@42.be>2017-05-11 20:10:53 +0200
commitee643de5b6031b6bdbf2e957f2fea8f1222ace64 (patch)
tree6dcdbee6b0d735b14e1d07e2f3b7694d0cb34f65
parent8c7549a09ea89514dee6e8a4247af8bf0599ba7f (diff)
downloadmatterbridge-msglm-ee643de5b6031b6bdbf2e957f2fea8f1222ace64.tar.gz
matterbridge-msglm-ee643de5b6031b6bdbf2e957f2fea8f1222ace64.tar.bz2
matterbridge-msglm-ee643de5b6031b6bdbf2e957f2fea8f1222ace64.zip
Add Compatibility for Cisco Jabber (xmpp) (#166)
-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 4dcb8ef7..3756f5b9 100644
--- a/bridge/xmpp/xmpp.go
+++ b/bridge/xmpp/xmpp.go
@@ -119,7 +119,7 @@ func (b *Bxmpp) handleXmpp() error {
var channel, nick string
if v.Type == "groupchat" {
s := strings.Split(v.Remote, "@")
- if len(s) == 2 {
+ if len(s) >= 2 {
channel = s[0]
}
s = strings.Split(s[1], "/")