Browse Source

Remove channel name from WHOX and TOPIC (cf. 1dd47c4f)

master
JustAnotherArchivist 3 years ago
parent
commit
e14289eb39
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      irclog.py

+ 2
- 2
irclog.py View File

@@ -608,7 +608,7 @@ class IRCClientProtocol(asyncio.Protocol):
yield 'TOPIC', channel, f'{get_mode_nick(channel)} sets the topic to: {line.params[1]}'
elif line.command == ircstates.numerics.RPL_TOPIC:
channel = line.params[1]
yield 'TOPIC', channel, f'Topic of {channel}: {line.params[2]}'
yield 'TOPIC', channel, f'Topic: {line.params[2]}'
elif line.command == ircstates.numerics.RPL_TOPICWHOTIME:
date = datetime.datetime.utcfromtimestamp(int(line.params[3])).replace(tzinfo = datetime.timezone.utc)
yield 'TOPICWHO', line.params[1], f'Topic set by {irctokens.hostmask(line.params[2]).nickname} at {date:%Y-%m-%d %H:%M:%SZ}'
@@ -622,7 +622,7 @@ class IRCClientProtocol(asyncio.Protocol):
for nickname, account in self.whoxReply:
accountStr = f' ({account})' if account is not None else ''
users.append(f'{self.render_nick_with_mode(self.server.channels[self.server.casefold(self.whoxChannel)].users.get(self.server.casefold(nickname)), nickname)}{accountStr}')
return f'Currently in {self.whoxChannel}: {", ".join(users)}'
return f'Current users: {", ".join(users)}'

async def quit(self):
# The server acknowledges a QUIT by sending an ERROR and closing the connection. The latter triggers connection_lost, so just wait for the closure event.


Loading…
Cancel
Save