summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-05-14 17:15:11 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2020-05-14 17:20:03 +0200
commit7b2b21be304dfa788d56f301053b54892c33589c (patch)
treeabe123aef15e7af526c1cb2161475a58e314a8b9
parent7b5c44b3613fb2b9255a4cf0319846bed39fcc64 (diff)
downloadpoezio-7b2b21be304dfa788d56f301053b54892c33589c.tar.gz
poezio-7b2b21be304dfa788d56f301053b54892c33589c.tar.bz2
poezio-7b2b21be304dfa788d56f301053b54892c33589c.tar.xz
poezio-7b2b21be304dfa788d56f301053b54892c33589c.zip
plugins/reorder: fix GapTab serialization
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--plugins/reorder.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/reorder.py b/plugins/reorder.py
index 26f5f13d..01de5c5d 100644
--- a/plugins/reorder.py
+++ b/plugins/reorder.py
@@ -113,7 +113,9 @@ def parse_runtime_tablist(tablist):
for tab in tablist[1:]:
i += 1
result = check_tab(tab)
- if result:
+ if result == 'empty':
+ props.append((i, 'empty'))
+ elif result:
props.append((i, '%s:%s' % (result, tab.jid.full)))
return props