Commit 873d28b4 authored by Yann Leboulanger's avatar Yann Leboulanger

fix py3 update. Fixes #48

parent 843a6708
......@@ -88,8 +88,7 @@ class RegexFilterPlugin(GajimPlugin):
def _nec_all(self, obj):
if not obj.msgtxt:
rules_num = self.rules.keys()
rules_num = sorted(self.rules.keys())
for num in rules_num:
rule = self.rules[num]
obj.msgtxt = rule[0].sub(rule[1], obj.msgtxt)
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