OSDN Git Service

Added some module functions related to DateTime or Time.
[shogi-server/shogi-server.git] / shogi_server / command.rb
index 571a18d..d661f90 100644 (file)
@@ -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