ping supposedly offline users too

* keep the name conversion though for those online with different nicks
* presence detection across multiple bridges/gateways is unreliable
* some members only get "joined" IRC side on first message after restart
* if they're really offline, then they won't get pinged anyway
This commit is contained in:
Phil Morrell 2022-02-02 21:25:41 +00:00
parent 2cfa9596c8
commit 5f945f33a5
Signed by: emorrp1
GPG Key ID: DBCA65091F248E6C
1 changed files with 2 additions and 0 deletions

2
bot.py
View File

@ -47,6 +47,8 @@ class Server(BaseServer):
pfold = self.casefold(player)
if pfold in channel.users:
ping += f"{channel.users[pfold].nickname} "
else:
ping += f"{player} "
await self.send(build("PRIVMSG", [chan, "Anyone ready for " + game + f" : {ping} ?"]))
if connections[self.name]: