From: Daigo Moriwaki Date: Tue, 1 Jun 2010 13:52:50 +0000 (+0900) Subject: - shogi_server/command.rb: Fixed an issue that MONITOR2OFF did not X-Git-Tag: 20170902~123 X-Git-Url: http://git.sourceforge.jp/view?p=shogi-server%2Fshogi-server.git;a=commitdiff_plain;h=3c5c117c78c14049e32df336a0a4105a4e3a9ead - shogi_server/command.rb: Fixed an issue that MONITOR2OFF did not work. Thanks to HIDECHI and koudayu. --- diff --git a/changelog b/changelog index 331a196..e2aef1b 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,9 @@ +2010-06-01 Daigo Moriwaki + + * [shogi-server] + - shogi_server/command.rb: Fixed an issue that MONITOR2OFF did not + work. Thanks to HIDECHI and koudayu. + 2010-05-10 Daigo Moriwaki * [shogi-server] diff --git a/shogi_server/command.rb b/shogi_server/command.rb index 571a18d..c8b00c0 100644 --- a/shogi_server/command.rb +++ b/shogi_server/command.rb @@ -378,6 +378,13 @@ module ShogiServer def initialize(str, player, game) super end + + def call + if (@game) + @game.monitoroff(MonitorHandler2.new(@player)) + end + return :continue + end end # Command of HELP