Prefix users with _ to avoid pings in .list

This commit is contained in:
Rampoina 2021-07-13 22:47:08 +02:00
parent de1a144e5f
commit 1d5158a435
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -78,9 +78,9 @@ class Server(BaseServer):
else:
game = " ".join(line.params[1].split(" ")[1:]).lower()
if game not in match_players[self.name + '-' + chan]:
await self.send(build("PRIVMSG", [user, "ERROR: no players in " + game + " list."]))
await self.send(build("PRIVMSG", [chan, "ERROR: no players in " + game + " list."]))
else:
await self.send(build("PRIVMSG", [user, game + " players: " + str(match_players[self.name + '-' + chan][game])]))
await self.send(build("PRIVMSG", [chan, game + " players: " + str(['_' + e for e in match_players[self.name + '-' + chan][game]])]))
elif line.params[1].startswith(".del"):
user = line.source.split('!')[0]
if len(line.params[1].split(" ")) < 2: