Pārlūkot izejas kodu

Log reason for PARTs

master
JustAnotherArchivist pirms 3 gadiem
vecāks
revīzija
b9c0bb97dc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt