diff src/tools/misc.py @ 876:65bf1bc70f6b

tools, plugin XEP-0077: small fixes
author souliane <souliane@mailoo.org>
date Tue, 25 Feb 2014 22:58:42 +0100
parents 1fe00f0c9a91
children 301b342c697a
line wrap: on
line diff
--- a/src/tools/misc.py	Tue Feb 25 18:47:15 2014 +0100
+++ b/src/tools/misc.py	Tue Feb 25 22:58:42 2014 +0100
@@ -54,7 +54,7 @@
         if point_name not in self.__triggers:
             self.__triggers[point_name] = []
         if priority != 0 and priority in [trigger_tuple[0] for trigger_tuple in self.__triggers[point_name]]:
-            if priority in (MIN_PRIORITY, MAX_PRIORITY):
+            if priority in (self.MIN_PRIORITY, self.MAX_PRIORITY):
                 warning(_("There is already a bound priority [%s]") % point_name)
             else:
                 debug(_("There is already a trigger with the same priority [%s]") % point_name)