diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-22 16:18:05 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-22 16:18:14 -0400 |
commit | 8da4eea93356673ee9a50165a03211bcb25f6ed8 (patch) | |
tree | be181e7b6ff36ae5dce7e3a4d0186eda80ff6a15 | |
parent | 4f8a0296ddae8a21f8545a16ed2207c2058564a9 (diff) | |
download | Bot-Zulip-Chess-8da4eea93356673ee9a50165a03211bcb25f6ed8.tar.gz Bot-Zulip-Chess-8da4eea93356673ee9a50165a03211bcb25f6ed8.zip |
don't notify the next player on mate
-rw-r--r-- | lib/Bot/Zulip/Chess.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Bot/Zulip/Chess.pm b/lib/Bot/Zulip/Chess.pm index 57a2f44..5501a45 100644 --- a/lib/Bot/Zulip/Chess.pm +++ b/lib/Bot/Zulip/Chess.pm @@ -207,10 +207,12 @@ sub draw_state ($self) { if ($status->{mate}) { $board .= "CHECKMATE\n"; $self->reset_board; + return $board; } elsif ($status->{stalemate}) { $board .= "STALEMATE\n"; $self->reset_board; + return $board; } elsif ($status->{check}) { $board .= "CHECK\n"; |