summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/disco.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/disco.py b/plugins/disco.py
index f6769146..ec0a04cd 100644
--- a/plugins/disco.py
+++ b/plugins/disco.py
@@ -29,6 +29,10 @@ class Plugin(BasePlugin):
help='Get the disco#info of a JID')
def on_disco(self, iq):
+ if iq['type'] == 'error':
+ self.api.information(iq['error']['text'] or iq['error']['condition'], 'Error')
+ return
+
info = iq['disco_info']
identities = (str(identity) for identity in info['identities'])
self.api.information('\n'.join(identities), 'Identities')