• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shogi-server source


Commit MetaInfo

Revisãofd6d6589ca6426133577ec9488070dc8b027a14f (tree)
Hora2004-06-23 23:25:01
Autornabeken <nabeken@b8c6...>
Commiternabeken

Mensagem de Log

support space in chat message
show protocol in who

Mudança Sumário

Diff

--- a/shogi-server
+++ b/shogi-server
@@ -159,14 +159,14 @@ class Player
159159 (status == "agree_waiting") ||
160160 (status == "game"))
161161 if (@sente)
162- return sprintf("%s %s %s +", @name, @status, @game_name)
162+ return sprintf("%s %s %s %s +", @name, @protocol, @status, @game_name)
163163 elsif (@sente == false)
164- return sprintf("%s %s %s -", @name, @status, @game_name)
164+ return sprintf("%s %s %s %s -", @name, @protocol, @status, @game_name)
165165 elsif (@sente == nil)
166- return sprintf("%s %s %s +-", @name, @status, @game_name)
166+ return sprintf("%s %s %s %s +-", @name, @protocol, @status, @game_name)
167167 end
168168 else
169- return sprintf("%s %s", @name, @status)
169+ return sprintf("%s %s %s", @name, @protocol, @status)
170170 end
171171 end
172172
@@ -278,7 +278,7 @@ class Player
278278 self.status = "agree_waiting"
279279 rival.status = "agree_waiting"
280280 end
281- when /^%%CHAT\s+(\S+)/
281+ when /^%%CHAT\s+(.+)/
282282 message = $1
283283 LEAGUE.hash.each do |name, player|
284284 if (player.protocol != "CSA")