diff options
author | Nathan Fritz <fritzy@netflint.net> | 2010-01-20 01:42:53 -0800 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-01-20 01:42:53 -0800 |
commit | 6b130eb94775da8675750a0a9aed75fa6f328137 (patch) | |
tree | de4a1f3149d4f4f45ebd93ecc7597895b29e8e00 /sleekxmpp/stanza/iq.py | |
parent | 986255eefc890263f7a326c53d3094fd5858272a (diff) | |
download | slixmpp-6b130eb94775da8675750a0a9aed75fa6f328137.tar.gz slixmpp-6b130eb94775da8675750a0a9aed75fa6f328137.tar.bz2 slixmpp-6b130eb94775da8675750a0a9aed75fa6f328137.tar.xz slixmpp-6b130eb94775da8675750a0a9aed75fa6f328137.zip |
unhandled iq's should only respond to errors when type=get/set
Diffstat (limited to 'sleekxmpp/stanza/iq.py')
-rw-r--r-- | sleekxmpp/stanza/iq.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sleekxmpp/stanza/iq.py b/sleekxmpp/stanza/iq.py index e3eccfdc..85165e1c 100644 --- a/sleekxmpp/stanza/iq.py +++ b/sleekxmpp/stanza/iq.py @@ -20,10 +20,11 @@ class Iq(RootStanza): self['id'] = '0' def unhandled(self): - self.reply() - self['error']['condition'] = 'feature-not-implemented' - self['error']['text'] = 'No handlers registered for this request.' - self.send() + if self['type'] in ('get', 'set'): + self.reply() + self['error']['condition'] = 'feature-not-implemented' + self['error']['text'] = 'No handlers registered for this request.' + self.send() def result(self): self['type'] = 'result' |