diff options
Diffstat (limited to 'FICS/ratings.c')
-rw-r--r-- | FICS/ratings.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/FICS/ratings.c b/FICS/ratings.c index 2c19907..535ca50 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -905,21 +905,24 @@ PUBLIC int com_statistics(int p, param_list param) return COM_OK; } -PUBLIC int com_fixrank(int p, param_list param) +PUBLIC int +com_fixrank(int p, param_list param) { - int p1, connected; + int p1, connected; - if (!FindPlayer(p, param[0].val.word, &p1, &connected)) - return COM_OK; - UpdateRank(TYPE_BLITZ, parray[p1].name, &parray[p1].b_stats, - parray[p1].name); - UpdateRank(TYPE_STAND, parray[p1].name, &parray[p1].s_stats, - parray[p1].name); - UpdateRank(TYPE_WILD, parray[p1].name, &parray[p1].w_stats, - parray[p1].name); - if (!connected) - player_remove(p1); - return COM_OK; + if (!FindPlayer(p, param[0].val.word, &p1, &connected)) + return COM_OK; + + UpdateRank(TYPE_BLITZ, parray[p1].name, &parray[p1].b_stats, + parray[p1].name); + UpdateRank(TYPE_STAND, parray[p1].name, &parray[p1].s_stats, + parray[p1].name); + UpdateRank(TYPE_WILD, parray[p1].name, &parray[p1].w_stats, + parray[p1].name); + + if (!connected) + player_remove(p1); + return COM_OK; } PUBLIC int |