diff options
author | kongr45gpen <electrovesta@gmail.com> | 2016-09-16 14:45:30 +0300 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2016-09-16 14:45:30 +0300 |
commit | af9f6faad73a4cc0e75394d4ff99134619164c05 (patch) | |
tree | 19d2ce253e7efb72ad1b9799cf13668a3b89bfe1 /local | |
parent | c1a40b6366fbc553cd8a15f5898de903ac05ecc0 (diff) | |
download | supybot_github-af9f6faad73a4cc0e75394d4ff99134619164c05.tar.gz supybot_github-af9f6faad73a4cc0e75394d4ff99134619164c05.tar.bz2 supybot_github-af9f6faad73a4cc0e75394d4ff99134619164c05.zip |
Add configuration option to hide pending statuses
Diffstat (limited to 'local')
-rw-r--r-- | local/handler/StatusHandler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/local/handler/StatusHandler.py b/local/handler/StatusHandler.py index 55114f4..4c56493 100644 --- a/local/handler/StatusHandler.py +++ b/local/handler/StatusHandler.py @@ -1,6 +1,9 @@ from ..utility import * def handle(data, theme): + if data['state'] == 'pending' and not configValue("showPendingStatuses"): + return + theme.status( status = data['state'], description = data['description'], |