diff options
Diffstat (limited to 'lib/Bot/Zulip/Chess.pm')
-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); |