fix py3 update. Fixes #48
This commit is contained in:
@@ -88,8 +88,7 @@ class RegexFilterPlugin(GajimPlugin):
|
|||||||
def _nec_all(self, obj):
|
def _nec_all(self, obj):
|
||||||
if not obj.msgtxt:
|
if not obj.msgtxt:
|
||||||
return
|
return
|
||||||
rules_num = self.rules.keys()
|
rules_num = sorted(self.rules.keys())
|
||||||
rules_num.sort()
|
|
||||||
for num in rules_num:
|
for num in rules_num:
|
||||||
rule = self.rules[num]
|
rule = self.rules[num]
|
||||||
obj.msgtxt = rule[0].sub(rule[1], obj.msgtxt)
|
obj.msgtxt = rule[0].sub(rule[1], obj.msgtxt)
|
||||||
|
|||||||
Reference in New Issue
Block a user