1
0
Fork 0

Fix breaking Ad-Hoc command made in last commit

This commit is contained in:
Chteufleur 2016-09-13 21:56:33 +02:00
parent db6d7326e6
commit fdeb74e887
1 changed files with 7 additions and 0 deletions

View File

@ -90,6 +90,13 @@ func mainXMPP() {
case xmpp.NSDiscoItems:
execDisco(v)
case xmpp.NodeAdHocCommand:
if jidBare == jid.Domain {
execCommandAdHoc(v)
} else {
sendNotSupportedFeature(v)
}
case xmpp.NSVCardTemp:
if jidBareTo == jid.Domain {
reply := v.Response(xmpp.IQTypeResult)