[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE:trying to 'show' and old game.
>I just sent a mail to the server requesting a copy of an old game.
>Too old, it had been removed from the list of games.
>
>However, the server didn't tell me that, it simply didn't reply to my
>request. I feel that this is a tad unfriendly. Would it be possible
>to get an error message in this case?
>
>Stig Hemmer.
>
The Show routine in the server calls a Scan routine to find matching
boards. It attempts to read a board matching its argument and if that
fails it assumes that the argument is a player name. It does not
validate the player name as they may have left the server. The games
list is then scanned for games including this non-existant player.
As no errors are detected, no messages are returned.
The Show routine needs changing after calling the Scan routine
to see if success.Count + failure.Count == 0 and to report "No
matching games found"