pretty
will always be in event
but it might be None
This commit is contained in:
parent
9abc668c0a
commit
9af23c686d
1 changed files with 1 additions and 2 deletions
|
@ -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", [
|
||||
|
|
Loading…
Reference in a new issue