diff options
| author | 2018-10-02 21:40:34 +0100 | |
|---|---|---|
| committer | 2018-10-02 21:40:34 +0100 | |
| commit | 9118af5e9c9c0e80507fd2bc8bc6cd840fad2c2f (patch) | |
| tree | 8eace1a7d271b4f317d4009744a0ed0f8e970f0a /modules/line_handler.py | |
| parent | Simplify Utils.seperate_hostmask (diff) | |
| signature | ||
Support changing command responses from PRIVMSG to NOTICE
Diffstat (limited to 'modules/line_handler.py')
| -rw-r--r-- | modules/line_handler.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/line_handler.py b/modules/line_handler.py index 68a717ee..0885e002 100644 --- a/modules/line_handler.py +++ b/modules/line_handler.py @@ -400,12 +400,13 @@ 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_message(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, event["tags"]) + user.buffer.add_message(user.nickname, message, action, + event["tags"]) # we've received a notice @Utils.hook("raw.notice") |
