aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-12-02 09:46:57 +0000
committerGravatar jesopo2018-12-02 09:46:57 +0000
commit48eeb115543d6edc7900c19272fc771ac5a21f1e (patch)
treeb28259927164335b8b52cee319c914b0cb0e81c4 /modules/line_handler.py
parentRemove usage of sys.stderr in IRCBot.py, change disconnect logs from `info` to (diff)
signature
Remove use of `print()` in modules/line_handler.py
Diffstat (limited to 'modules/line_handler.py')
-rw-r--r--modules/line_handler.py2
1 files changed, 1 insertions, 1 deletions
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")