Commit 233d6d22 authored by mathieui's avatar mathieui

Fix /destroy error cases

parent f808f0cf
Pipeline #3589 passed with stages
in 4 minutes and 53 seconds
......@@ -1168,9 +1168,9 @@ class CommandCore:
try:
await self.core.xmpp['xep_0045'].destroy(room, reason, altroom)
except (IqError, IqTimeout) as e:
xmpp.core.information('Unable to destroy room %s: %s' % (room, e), 'Info')
self.core.information('Unable to destroy room %s: %s' % (room, e), 'Info')
else:
xmpp.core.information('Room %s destroyed' % room, 'Info')
self.core.information('Room %s destroyed' % room, 'Info')
if not args[0] and isinstance(self.core.tabs.current_tab, tabs.MucTab):
room = self.core.tabs.current_tab.general_jid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment