From 4053a73ad4350c0e98eb17beffcf11f4601643f3 Mon Sep 17 00:00:00 2001 From: spla Date: Fri, 20 Nov 2020 18:33:29 +0100 Subject: [PATCH] Fix #6 --- mastochess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastochess.py b/mastochess.py index 72ac1e1..29ebc51 100644 --- a/mastochess.py +++ b/mastochess.py @@ -997,9 +997,9 @@ if __name__ == '__main__': try: - if chess.Move.from_uci(moving) in board.legal_moves == False: + if chess.Move.from_uci(moving) not in board.legal_moves: - toot_text = "@"+username + ' moviment il·legal!' + '\n' + toot_text = "@"+username + ": " + moving + " és un moviment il·legal. Torna a tirar." + "\n" mastodon.status_post(toot_text, in_reply_to_id=status_id,visibility=visibility)