From 976b6ae335fc7563f35bc6e50d33779f4d69136e Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 1 Oct 2018 17:26:31 +0100 Subject: Better support for msgtags with PRIVMSGs; put functionality in to modules/commands.py to reply to specific messages by use of msgids --- modules/line_handler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/line_handler.py') diff --git a/modules/line_handler.py b/modules/line_handler.py index 9d8548a6..1f0fddee 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -414,11 +414,12 @@ class Module(ModuleManager.BaseModule): channel = event["server"].get_channel(event["args"][0]) self.events.on("received.message.channel").call( user=user, channel=channel, **kwargs) - channel.buffer.add_line(user.nickname, message, action) + channel.buffer.add_line(user.nickname, message, action, + event["tags"]) elif event["server"].is_own_nickname(target): self.events.on("received.message.private").call( user=user, **kwargs) - user.buffer.add_line(user.nickname, message, action) + user.buffer.add_line(user.nickname, message, action, event["tags"]) # we've received a notice @Utils.hook("raw.notice") -- cgit v1.3.1-10-gc9f91