forked from jshiffer/matterbridge
Add Compatibility for Cisco Jabber (xmpp) (#166)
This commit is contained in:
parent
8c7549a09e
commit
ee643de5b6
@ -119,7 +119,7 @@ func (b *Bxmpp) handleXmpp() error {
|
|||||||
var channel, nick string
|
var channel, nick string
|
||||||
if v.Type == "groupchat" {
|
if v.Type == "groupchat" {
|
||||||
s := strings.Split(v.Remote, "@")
|
s := strings.Split(v.Remote, "@")
|
||||||
if len(s) == 2 {
|
if len(s) >= 2 {
|
||||||
channel = s[0]
|
channel = s[0]
|
||||||
}
|
}
|
||||||
s = strings.Split(s[1], "/")
|
s = strings.Split(s[1], "/")
|
||||||
|
Loading…
Reference in New Issue
Block a user