aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-02 22:12:24 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-02 22:12:24 +0200
commit77bfa7993b3deb5e0a4ff95a9b166d56bf04e218 (patch)
tree4584040f1b5466d5aa995626610f259c780ac664
parent4a1cae55cad57a6fcc1d9267a3517f6f8e1b52d7 (diff)
Reformatted com_fixrank()
-rw-r--r--FICS/ratings.c29
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