From 396b3c0185ff17c7d3059d27c66336b7ece8056f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 14 May 2019 22:00:06 +0300 Subject: [PATCH] Ignore leave-events from ppl not in the game. Since leave-event was hooked up into ppl quiting and parting from the channel as well as doing !leave, the message telling ppl were not in the game would get triggered unintentionally. --- gameloop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gameloop.py b/gameloop.py index cdb4d42..3063831 100644 --- a/gameloop.py +++ b/gameloop.py @@ -293,7 +293,8 @@ def game(send, notice, voice, devoice, get_event): elif event == events.leave: nick, = args if nick not in players: - send('No such player %s' % nick) + # Ignore those not in the game + pass elif errwrapper('Could not remove player %s (%%s)' % nick, remove_player, nick) is not Error: devoice(nick)