Mercurial > irccd
diff plugins/tictactoe/tictactoe.js @ 634:06f5486bfdcb
Plugin tictactoe: fix and simplify cell syntax, closes #768 @15m
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 14 Mar 2018 13:44:22 +0100 |
parents | c07819d1d306 |
children | 3e816cebed2c |
line wrap: on
line diff
--- a/plugins/tictactoe/tictactoe.js Wed Mar 14 13:12:36 2018 +0100 +++ b/plugins/tictactoe/tictactoe.js Wed Mar 14 13:44:22 2018 +0100 @@ -330,7 +330,7 @@ if (!game || !game.isTurn(nickname)) return; - var match = /([abc]) ([123])/.exec(message); + var match = /^([abc]) ?([123])$/.exec(message.trim()); if (!match) return;