From e5a5fa5c4b40918247be8486d27a1676b6d2b044 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 28 Aug 2018 12:23:57 +0100 Subject: modules/logging.py -> IRCLogging.py; IRCLog.py -> IRCBuffer.py; change logging to be an object on the server object instead of an event call --- IRCLineHandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IRCLineHandler.py') diff --git a/IRCLineHandler.py b/IRCLineHandler.py index 6267fc06..38bf49a0 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -302,12 +302,12 @@ def handle_PRIVMSG(data): bot.events.on("received").on("message").on("channel").call( user=user, message=message, message_split=message_split, channel=channel, action=action, server=data.server) - channel.log.add_line(user.nickname, message, action) + channel.buffer.add_line(user.nickname, message, action) elif server.is_own_nickname(target): bot.events.on("received").on("message").on("private").call( user=user, message=message, message_split=message_split, action=action, server=data.server) - user.log.add_line(user.nickname, message, action) + user.buffer.add_line(user.nickname, message, action) @handler(description="we've received a notice") def handle_NOTICE(data): -- cgit v1.3.1-10-gc9f91