diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/disco.py | 4 | ||||
-rw-r--r-- | plugins/embed.py | 2 | ||||
-rw-r--r-- | plugins/upload.py | 2 |
3 files changed, 6 insertions, 2 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') diff --git a/plugins/embed.py b/plugins/embed.py index 726b1eb2..0cdc41d2 100644 --- a/plugins/embed.py +++ b/plugins/embed.py @@ -20,7 +20,7 @@ from poezio.theming import get_theme class Plugin(BasePlugin): def init(self): - for tab_t in [tabs.MucTab, tabs.ConversationTab, tabs.PrivateTab]: + for tab_t in [tabs.MucTab, tabs.StaticConversationTab, tabs.DynamicConversationTab, tabs.PrivateTab]: self.api.add_tab_command( tab_t, 'embed', diff --git a/plugins/upload.py b/plugins/upload.py index db8615c2..7e25070e 100644 --- a/plugins/upload.py +++ b/plugins/upload.py @@ -33,7 +33,7 @@ class Plugin(BasePlugin): def init(self): if not self.core.xmpp['xep_0363']: raise Exception('slixmpp XEP-0363 plugin failed to load') - for _class in (tabs.PrivateTab, tabs.ConversationTab, tabs.MucTab): + for _class in (tabs.PrivateTab, tabs.StaticConversationTab, tabs.DynamicConversationTab, tabs.MucTab): self.api.add_tab_command( _class, 'upload', |