* [shogi-server]
- Remove the trip in a password. Now the password is hashed.
+ * [mk_rate]
+ - Support @NORATE syntax in a name, which avoids the player is
+ rated.
2006-09-09 Daigo Moriwaki <daigo at debian dot org>
end
def identify_id(id)
+ if /@NORATE\+/ =~ id # the player having @NORATE in the name should not be rated
+ return nil
+ end
id.gsub(/@.*?\+/,"+")
end
black_id, white_id = $1.split(":").map {|a| a.strip}
black_id = identify_id(black_id)
white_id = identify_id(white_id)
- unless black_id == white_id
+ if black_id && white_id && (black_id != white_id)
add(black_mark, black_id, white_id, white_mark, time)
end
end