diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-22 16:28:15 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-22 16:28:15 -0400 |
commit | 067f8c7f667aaff57bc1e613468d5a730a310766 (patch) | |
tree | dddb4713bf8f25cc9bbca5d5eafa79f473d4b450 | |
parent | aedb81510d05b9639cbb2d0035607c48e3196366 (diff) | |
download | Bot-Zulip-Chess-067f8c7f667aaff57bc1e613468d5a730a310766.tar.gz Bot-Zulip-Chess-067f8c7f667aaff57bc1e613468d5a730a310766.zip |
need to actually return the message here
-rw-r--r-- | lib/Bot/Zulip/Chess.pm | 1 |
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); |