• 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

Revisióne9200e87ad0d0cdddc723affb1c570aa4793f14a (tree)
Tiempo2015-02-01 11:32:31
AutorDaigo Moriwaki <daigo@debi...>
CommiterDaigo Moriwaki

Log Message

[shogi-server] - shogi_server/login.rb: When players are logged in, log their player_id if they have it.

Cambiar Resumen

Diferencia incremental

--- a/changelog
+++ b/changelog
@@ -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+
17 2015-01-20 Daigo Moriwaki <daigo at debian dot org>
28
39 * [mk_rate]
--- a/shogi_server/login.rb
+++ b/shogi_server/login.rb
@@ -109,7 +109,8 @@ class Login
109109
110110 def process
111111 @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])
113114 end
114115
115116 def incorrect_duplicated_player(str)