From 496752d0db3d54dac7c15220042c9631d587e226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 1 Apr 2020 01:26:08 +0200 Subject: reorder: create GapTab if configured, when creating ConversationTab fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugins/reorder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/reorder.py b/plugins/reorder.py index 2708d395..e61a9925 100644 --- a/plugins/reorder.py +++ b/plugins/reorder.py @@ -183,7 +183,8 @@ class Plugin(BasePlugin): new_tabs.append(new_tab) except: self.api.information('Failed to create tab \'%s\'.' % jid, 'Error') - continue + if create_gaps: + new_tabs.append(tabs.GapTab(self.core)) last = pos for tab in old_tabs: -- cgit v1.2.3