From f9801074ece19aef78eb6403fb6da7684b003ffa Mon Sep 17 00:00:00 2001 From: Someone Date: Wed, 3 Aug 2022 05:11:14 +0200 Subject: [PATCH] core/MMBot.py --- core/MMBot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/MMBot.py b/core/MMBot.py index 3ff565e..2913116 100644 --- a/core/MMBot.py +++ b/core/MMBot.py @@ -171,11 +171,11 @@ class MMBot(): self.wsmodules[evtype][module]._on_SIGUSR1(self.sigusr1_cnt) - def debug_chan(self, message): + def debug_chan(self, message, root_id=None): if self.debug_chan_id is None: logger.error("debug_chan() called, but debug_chan_id is unspecified.") - return - self.api.create_post(self.debug_chan_id, "``AUTODELETE-DAY``\n"+message) + return None + return self.api.create_post(self.debug_chan_id, "``AUTODELETE-DAY``\n"+message, root_id=root_id) def command_stats_inc(self, command, amount=1): -- 2.43.0