OSDN Git Service

- shogi_server/command.rb: Fixed an issue that MONITOR2OFF did not
authorDaigo Moriwaki <daigo@debian.org>
Tue, 1 Jun 2010 13:52:50 +0000 (22:52 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Tue, 1 Jun 2010 13:52:50 +0000 (22:52 +0900)
  work. Thanks to HIDECHI and koudayu.

changelog
shogi_server/command.rb

index 331a196..e2aef1b 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+2010-06-01  Daigo Moriwaki <daigo at debian dot org>
+
+       * [shogi-server]
+         - shogi_server/command.rb: Fixed an issue that MONITOR2OFF did not
+           work. Thanks to HIDECHI and koudayu.
+
 2010-05-10  Daigo Moriwaki <daigo at debian dot org>
 
        * [shogi-server]
index 571a18d..c8b00c0 100644 (file)
@@ -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