summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-01-28 19:01:04 +0100
committermathieui <mathieui@mathieui.net>2021-01-28 19:03:54 +0100
commit233d6d2252c01d5d6bdea0b02bc44a279ef765f7 (patch)
treeb080e01fd8a64ddc61b0a673c274dd15c60c980c
parentf808f0cff98ae5ff7f093c1b87b630184138464b (diff)
downloadpoezio-233d6d2252c01d5d6bdea0b02bc44a279ef765f7.tar.gz
poezio-233d6d2252c01d5d6bdea0b02bc44a279ef765f7.tar.bz2
poezio-233d6d2252c01d5d6bdea0b02bc44a279ef765f7.tar.xz
poezio-233d6d2252c01d5d6bdea0b02bc44a279ef765f7.zip
Fix /destroy error cases
-rw-r--r--poezio/core/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 03ca0a61..45704978 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -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