From 48eeb115543d6edc7900c19272fc771ac5a21f1e Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 2 Dec 2018 09:46:57 +0000 Subject: [PATCH] Remove use of `print()` in modules/line_handler.py --- modules/line_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/line_handler.py b/modules/line_handler.py index 9b52e773..b5e58f91 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -262,7 +262,7 @@ class Module(ModuleManager.BaseModule): # unknown command sent by us, oops! @utils.hook("raw.received.421", default_event=True) def handle_421(self, event): - print("warning: unknown command '%s'." % event["args"][1]) + self.bot.log.warn("We sent an unknown command: %s", [event["args"][1]]) # a user has disconnected! @utils.hook("raw.received.quit")