From 067f8c7f667aaff57bc1e613468d5a730a310766 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 22 Oct 2014 16:28:15 -0400 Subject: need to actually return the message here --- lib/Bot/Zulip/Chess.pm | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3