Permalink
Browse files

Return service-unavailable for unknown/unsupported IQ requests

  • Loading branch information...
legastero committed May 22, 2018
1 parent 54c3798 commit af8d8be2d31c8daf3439567ee1884c6b3f7dce07
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/client.js
View
@@ -150,7 +150,7 @@ function Client(opts) {
return self.sendIq(iq.errorReply({
error: {
type: 'cancel',
condition: 'feature-not-implemented'
condition: 'service-unavailable'
}
}));
}
@@ -164,7 +164,7 @@ function Client(opts) {
self.sendIq(iq.errorReply({
error: {
type: 'cancel',
condition: 'feature-not-implemented'
condition: 'service-unavailable'
}
}));
}

0 comments on commit af8d8be

Please sign in to comment.