This commit is contained in:
Mickael Remond 2018-12-26 19:20:56 +01:00
parent be587fac4c
commit a35a7959d7
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3

2
jid.go
View File

@ -22,7 +22,7 @@ func NewJid(sjid string) (jid *Jid, err error) {
s2 := strings.Split(s1[1], "/") s2 := strings.Split(s1[1], "/")
if len(s2) > 2 { if len(s2) > 2 {
err = errors.New("invalid JID: " + sjidd) err = errors.New("invalid JID: " + sjid)
return return
} }
jid.domain = s2[0] jid.domain = s2[0]