Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Brötzmann <mailtrash@posteo.de>2020-04-24 09:39:52 +0300
committerDaniel Brötzmann <mailtrash@posteo.de>2020-04-26 14:31:33 +0300
commit0a483bab4c5cf05b5b2c9707cb681ad8c2e9b40b (patch)
treedecc17903b2d5cf4f08a0c94c5649e7a6f30f40e /triggers/triggers.py
parent97cd7a4976b26ccb3a950da890be73e784421df9 (diff)
[triggers] Fix getting connection status
Diffstat (limited to 'triggers/triggers.py')
-rw-r--r--triggers/triggers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/triggers/triggers.py b/triggers/triggers.py
index 5e31b69..4daa8e8 100644
--- a/triggers/triggers.py
+++ b/triggers/triggers.py
@@ -81,7 +81,7 @@ class Triggers(GajimPlugin):
def _check_rule_status(self, obj, rule):
rule_statuses = rule['status'].split()
- our_status = app.SHOW_LIST[obj.conn.connected]
+ our_status = app.connections[obj.conn.name].status
if rule['status'] != 'all' and our_status not in rule_statuses:
return False