From b9c0bb97dc4336e2752929f1b5aca204b7ac5d6b Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sat, 19 Dec 2020 03:21:34 +0000 Subject: [PATCH] Log reason for PARTs --- irclog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irclog.py b/irclog.py index 79817d5..d745035 100644 --- a/irclog.py +++ b/irclog.py @@ -576,7 +576,7 @@ class IRCClientProtocol(asyncio.Protocol): channels = [line.params[0]] if ',' not in line.params[0] else line.params[0].split(',') reason = f' [{line.params[1]}]' if len(line.params) == 2 else '' for channel in channels: - yield 'PART', channel, f'{get_mode_nick(channel)} leaves' + yield 'PART', channel, f'{get_mode_nick(channel)} leaves{reason}' elif line.command in ('QUIT', 'NICK', 'ACCOUNT'): if line.hostmask.nickname == self.server.nickname: channels = self.channels