Add Compatibility for Cisco Jabber

This commit is contained in:
Frank Isemann
2017-05-11 18:06:50 +02:00
parent 8c7549a09e
commit aa68cc70f1

View File

@@ -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], "/")