Avoid traceback when configuration is forbidden…

This commit is contained in:
Florent Le Coz 2011-01-21 04:54:01 +01:00
parent 1b995e4bf0
commit d8f92a67e4

View file

@ -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):