Prefix users with _ to avoid pings in .list
This commit is contained in:
parent
de1a144e5f
commit
1d5158a435
4
bot.py
4
bot.py
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue