shogi-server source
Revisão | fd6d6589ca6426133577ec9488070dc8b027a14f (tree) |
---|---|
Hora | 2004-06-23 23:25:01 |
Autor | nabeken <nabeken@b8c6...> |
Commiter | nabeken |
support space in chat message
show protocol in who
@@ -159,14 +159,14 @@ class Player | ||
159 | 159 | (status == "agree_waiting") || |
160 | 160 | (status == "game")) |
161 | 161 | if (@sente) |
162 | - return sprintf("%s %s %s +", @name, @status, @game_name) | |
162 | + return sprintf("%s %s %s %s +", @name, @protocol, @status, @game_name) | |
163 | 163 | 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) | |
165 | 165 | 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) | |
167 | 167 | end |
168 | 168 | else |
169 | - return sprintf("%s %s", @name, @status) | |
169 | + return sprintf("%s %s %s", @name, @protocol, @status) | |
170 | 170 | end |
171 | 171 | end |
172 | 172 |
@@ -278,7 +278,7 @@ class Player | ||
278 | 278 | self.status = "agree_waiting" |
279 | 279 | rival.status = "agree_waiting" |
280 | 280 | end |
281 | - when /^%%CHAT\s+(\S+)/ | |
281 | + when /^%%CHAT\s+(.+)/ | |
282 | 282 | message = $1 |
283 | 283 | LEAGUE.hash.each do |name, player| |
284 | 284 | if (player.protocol != "CSA") |