From d8f92a67e417de54fe2ca9e2dd5b19139e193242 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 21 Jan 2011 04:54:01 +0100 Subject: [PATCH] =?UTF-8?q?Avoid=20traceback=20when=20configuration=20is?= =?UTF-8?q?=20forbidden=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tabs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tabs.py b/src/tabs.py index 023c9cf3..734efb74 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -396,6 +396,8 @@ class MucTab(ChatTab): def command_configure(self, arg): form = self.core.xmpp.plugin['xep_0045'].getRoomForm(self.get_name()) self.core.information('%s' % form) + if not form: + return self.core.open_new_form(form, self.cancel_config, self.send_config) def cancel_config(self, form):