summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-01-25 10:40:50 -0800
committerNathan Fritz <fritzy@netflint.net>2010-01-25 10:40:50 -0800
commit65dd83d4e174fc5f88ea90b32dd9e3ebf1787294 (patch)
tree9710ceeebb74d49c6ae1926bae7be5188c4a9066 /sleekxmpp/stanza
parent6e4c1128ec8f01d31c7714c13db02ff20c7a0a40 (diff)
parent6b130eb94775da8675750a0a9aed75fa6f328137 (diff)
downloadslixmpp-65dd83d4e174fc5f88ea90b32dd9e3ebf1787294.tar.gz
slixmpp-65dd83d4e174fc5f88ea90b32dd9e3ebf1787294.tar.bz2
slixmpp-65dd83d4e174fc5f88ea90b32dd9e3ebf1787294.tar.xz
slixmpp-65dd83d4e174fc5f88ea90b32dd9e3ebf1787294.zip
Merge branch 'master' of github.com:fritzy/SleekXMPP
Diffstat (limited to 'sleekxmpp/stanza')
-rw-r--r--sleekxmpp/stanza/iq.py9
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'