Commit 00b40e62 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Merge branch 'regex-filter-proper-filter-order' into 'master'

[regex_filter] Display the correct order of rules in the output of /list_filters

See merge request !33
parents 39c0829d db7f93f4
......@@ -167,8 +167,11 @@ class FilterCommands(CommandContainer):
def list_filters(self):
plugin = gajim.plugin_manager.get_active_plugin('regex_filter')
rules = plugin.get_rules()
rules_num = rules.keys()
st = ''
for num, rule in rules.items():
for num in rules_num:
rule = rules[num]
st += _('%(num)s: %(search)s -> %(replace)s') % {'num': num,
'search': rule[0], 'replace': rule[1]} + '\n'
if st:
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