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)