aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-14 11:55:59 +0000
committerGravatar jesopo2019-11-14 11:55:59 +0000
commit9af23c686db27edd99d5873cccc4a7b1cff708a8 (patch)
treedfdc445acdcfb5cb09b2aca0113d14607f9c6afa /modules
parentdon't let RSS shortening failure CRITICAL the whole bot (diff)
signature
`pretty` will always be in `event` but it might be None
Diffstat (limited to 'modules')
-rw-r--r--modules/print_activity.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/print_activity.py b/modules/print_activity.py
index 2852fe8e..67d7bff0 100644
--- a/modules/print_activity.py
+++ b/modules/print_activity.py
@@ -11,8 +11,7 @@ from src import EventManager, ModuleManager, utils
class Module(ModuleManager.BaseModule):
def _print(self, event):
line = event["line"]
- if ("pretty" in event and
- self.bot.get_setting("pretty-activity", False)):
+ if event["pretty"] and self.bot.get_setting("pretty-activity", False):
line = event["pretty"]
self.bot.log.info("%s%s | %s", [