diff options
| author | 2019-03-06 14:30:33 +0000 | |
|---|---|---|
| committer | 2019-03-06 14:30:33 +0000 | |
| commit | ed3fc0e5d4c964dfe606726365183ccc51ccade3 (patch) | |
| tree | bd3613dc16bc1a777e4ee6c8b8b77fa7cf275607 /modules | |
| parent | Expose 'log' channel setting to !channelset (diff) | |
| signature | ||
don't utils.irc.parse_format in format_activity.py, so we don't have to use
raw_line in channel_log
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/channel_log/__init__.py | 2 | ||||
| -rw-r--r-- | modules/format_activity.py | 3 | ||||
| -rw-r--r-- | modules/print_activity.py | 3 |
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"])]) |
