X-Git-Url: http://git.sourceforge.jp/view?p=shogi-server%2Fshogi-server.git;a=blobdiff_plain;f=shogi_server%2Fcommand.rb;h=d661f90d2cb0cdb69e8588a2a028f6bdae868536;hp=571a18d1379933595d013fc2447f3dada409d059;hb=79a2333cd6a75b0b0bfebb04be8c86ba2f5a6418;hpb=9118bc521d13e741387febc815aaf6e8961c8ba4 diff --git a/shogi_server/command.rb b/shogi_server/command.rb index 571a18d..d661f90 100644 --- a/shogi_server/command.rb +++ b/shogi_server/command.rb @@ -374,10 +374,17 @@ module ShogiServer end end - class Monitor2OffCommand < MonitorOffCommand # same + class Monitor2OffCommand < MonitorOffCommand def initialize(str, player, game) super end + + def call + if (@game) + @game.monitoroff(MonitorHandler2.new(@player)) + end + return :continue + end end # Command of HELP