From 8da4eea93356673ee9a50165a03211bcb25f6ed8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 22 Oct 2014 16:18:05 -0400 Subject: don't notify the next player on mate --- lib/Bot/Zulip/Chess.pm | 2 ++ 1 file changed, 2 insertions(+) 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"; -- cgit v1.2.3