|
|
|
@ -41,14 +41,14 @@ class Server(BaseServer):
@@ -41,14 +41,14 @@ class Server(BaseServer):
|
|
|
|
|
else: |
|
|
|
|
game = " ".join(line.params[1].split(" ")[1:]).lower() |
|
|
|
|
ping = "" |
|
|
|
|
user = line.source.split('!')[0] |
|
|
|
|
global lastPlayed |
|
|
|
|
lastPlayed = game |
|
|
|
|
user = line.source.split('!')[0] |
|
|
|
|
if game not in match_players[self.name + '-' + chan]: |
|
|
|
|
await self.send(build("PRIVMSG", [chan, "ERROR: no players in "+ game])) |
|
|
|
|
else: |
|
|
|
|
matches = match_players[self.name + '-' + chan][game] |
|
|
|
|
others = list(set(matches) - set([user])) # don't ping the user who .matched |
|
|
|
|
global lastPlayed |
|
|
|
|
lastPlayed = game |
|
|
|
|
|
|
|
|
|
if len(others) > 0: |
|
|
|
|
for player in others: |
|
|
|
|