tools, plugin XEP-0077: small fixes

This commit is contained in:
souliane 2014-02-25 22:58:42 +01:00
commit 647db64941

View file

@ -54,7 +54,7 @@ class TriggerManager(object):
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)