OSDN Git Service

Support a new command, %%VERSION. It shows the server's revision#.
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sat, 9 Sep 2006 01:56:35 +0000 (01:56 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sat, 9 Sep 2006 01:56:35 +0000 (01:56 +0000)
changelog
shogi-server

index e1fa356..f05c0ff 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,3 +1,8 @@
+2006-09-09  Daigo Moriwaki <daigo at debian dot org>
+
+       * [shogi-server]
+         - Support a new command, %%VERSION. It shows the server's revision#.
+
 2006-09-07  Daigo Moriwaki <daigo at debian dot org>
 
        * [shogi-server]
index 303a714..dbd7c58 100755 (executable)
@@ -403,6 +403,9 @@ class Player < BasicPlayer
                        [p.simple_id, p.rate, p.modified_at.strftime("%Y-%m-%d")])
           end
           write_safe("##[RATING] +OK\n")
+        when /^%%VERSION/
+          write_safe "##[VERSION] Shogi Server revision #{Revision}\n"
+          write_safe("##[VERSION] +OK\n")
         when /^%%GAME\s*$/
           if ((@status == "connected") || (@status == "game_waiting"))
             @status = "connected"