aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/channel_log/__init__.py2
-rw-r--r--modules/format_activity.py3
-rw-r--r--modules/print_activity.py3
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/channel_log/__init__.py b/modules/channel_log/__init__.py
index 80a5c427..b7cc46bf 100644
--- a/modules/channel_log/__init__.py
+++ b/modules/channel_log/__init__.py
@@ -15,7 +15,7 @@ class Module(ModuleManager.BaseModule):
if channel.get_setting("log", False):
with self._log_file(str(event["server"]), str(channel)) as log:
timestamp = datetime.datetime.now().strftime("%x %X")
- log.write("%s %s\n" % (timestamp, event["raw_line"]))
+ log.write("%s %s\n" % (timestamp, event["line"]))
@utils.hook("formatted.message.channel")
@utils.hook("formatted.notice.channel")
diff --git a/modules/format_activity.py b/modules/format_activity.py
index 921b0a98..44e718e4 100644
--- a/modules/format_activity.py
+++ b/modules/format_activity.py
@@ -4,8 +4,7 @@ from src import EventManager, ModuleManager, utils
class Module(ModuleManager.BaseModule):
def _event(self, type, server, line, context, channel=None, user=None):
self.events.on("formatted").on(type).call(server=server,
- context=context, line=utils.irc.parse_format(line), raw_line=line,
- channel=channel, user=user)
+ context=context, line=line, channel=channel, user=user)
def _mode_symbols(self, user, channel, server):
modes = channel.get_user_status(user)
diff --git a/modules/print_activity.py b/modules/print_activity.py
index def260db..7f0d3777 100644
--- a/modules/print_activity.py
+++ b/modules/print_activity.py
@@ -19,4 +19,5 @@ class Module(ModuleManager.BaseModule):
@utils.hook("formatted.motd")
def formatted(self, event):
self.bot.log.info("%s%s | %s", [
- str(event["server"]), event["context"] or "", event["line"]])
+ str(event["server"]), event["context"] or "",
+ utils.irc.parse_format(event["line"])])