summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-22 16:28:15 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-22 16:28:15 -0400
commit067f8c7f667aaff57bc1e613468d5a730a310766 (patch)
treedddb4713bf8f25cc9bbca5d5eafa79f473d4b450
parentaedb81510d05b9639cbb2d0035607c48e3196366 (diff)
downloadBot-Zulip-Chess-067f8c7f667aaff57bc1e613468d5a730a310766.tar.gz
Bot-Zulip-Chess-067f8c7f667aaff57bc1e613468d5a730a310766.zip
need to actually return the message here
-rw-r--r--lib/Bot/Zulip/Chess.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Bot/Zulip/Chess.pm b/lib/Bot/Zulip/Chess.pm
index ef42640..290d4ac 100644
--- a/lib/Bot/Zulip/Chess.pm
+++ b/lib/Bot/Zulip/Chess.pm
@@ -172,6 +172,7 @@ sub handle_move ($self, $player, $move) {
if ($move eq 'resign') {
my $msg = '@**' . $self->current_player . "** resigned";
$self->reset_board;
+ return $msg;
}
else {
my $res = $self->_chessboard->go_move($move);