diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-01-01 21:27:33 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-01-01 21:27:33 +0100 |
commit | 61bc7203007fcee9243012d5f448ba0727d075e7 (patch) | |
tree | 169c330a5014c676d556cfba85a558bd4c23f13a /FICS | |
parent | ba9530fd78873c08d4d90b51cc8d76fa812a4c03 (diff) |
Reformatted com_getps()
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/comproc.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c index 2202d3f..68e9e41 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -1738,17 +1738,21 @@ PUBLIC int com_getpi(int p, param_list param) return COM_OK; } -PUBLIC int com_getps(int p, param_list param) +PUBLIC int +com_getps(int p, param_list param) { - int p1; + int p1; - if ((((p1 = player_find_bylogin(param[0].val.word)) < 0) || (parray[p1].registered == 0)) || (parray[p1].game < 0)) { + if (((p1 = player_find_bylogin(param[0].val.word)) < 0 || + parray[p1].registered == 0) || + parray[p1].game < 0) { + pprintf(p, "*status %s 1*\n", param[0].val.word); + return COM_OK; + } - pprintf(p, "*status %s 1*\n", param[0].val.word); - return COM_OK; - } - pprintf(p, "*status %s 0 %s*\n", parray[p1].name, parray[(parray[p1].opponent)].name); - return COM_OK; + pprintf(p, "*status %s 0 %s*\n", parray[p1].name, + parray[(parray[p1].opponent)].name); + return COM_OK; } PUBLIC int |