shogi-server source
Revisão | e9200e87ad0d0cdddc723affb1c570aa4793f14a (tree) |
---|---|
Hora | 2015-02-01 11:32:31 |
Autor | Daigo Moriwaki <daigo@debi...> |
Commiter | Daigo Moriwaki |
[shogi-server] - shogi_server/login.rb: When players are logged in, log their player_id if they have it.
@@ -1,3 +1,9 @@ | ||
1 | +2015-02-01 Daigo Moriwaki <daigo at debian dot org> | |
2 | + | |
3 | + * [shogi-server] | |
4 | + - shogi_server/login.rb: When players are logged in, log their | |
5 | + player_id if they have it. | |
6 | + | |
1 | 7 | 2015-01-20 Daigo Moriwaki <daigo at debian dot org> |
2 | 8 | |
3 | 9 | * [mk_rate] |
@@ -109,7 +109,8 @@ class Login | ||
109 | 109 | |
110 | 110 | def process |
111 | 111 | @player.write_safe(sprintf("LOGIN:%s OK\n", @player.name)) |
112 | - log_message(sprintf("user %s run in %s mode", @player.name, @player.protocol)) | |
112 | + log_message("user %s run in %s mode" % [(@player.rated? ? @player.player_id : @player.name), | |
113 | + @player.protocol]) | |
113 | 114 | end |
114 | 115 | |
115 | 116 | def incorrect_duplicated_player(str) |