From 940ce8bb8afee13b1f3fd433abcc6eb2491b1547 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 19 May 2024 19:19:00 +0200 Subject: Style fixes --- FICS/adminproc.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/FICS/adminproc.c b/FICS/adminproc.c index e1a567e..215f863 100644 --- a/FICS/adminproc.c +++ b/FICS/adminproc.c @@ -495,7 +495,7 @@ com_checkIP(int p, param_list param) ASSERT(parray[p].adminLevel >= ADMIN_ADMIN); - pprintf(p, "Matches the following player(s): \n\n"); + pprintf(p, "Matches the following player(s):\n\n"); for (p1 = 0; p1 < p_num; p1++) { if (!strcmpwild(dotQuad(parray[p1].thisHost), ipstr) && @@ -651,7 +651,7 @@ com_checkTIMESEAL(int p, param_list param) } PUBLIC int -com_checkGAME(int p,param_list param) +com_checkGAME(int p, param_list param) { char tmp[10 + 1 + 7]; // enough to store number // 'black: ' and '\0' @@ -683,12 +683,14 @@ com_checkGAME(int p,param_list param) for (g = 0; g < g_num; g++) { multicol_store(m, tmp); - if (!strcasecmp(garray[g].white_name,param[0].val.word)) { + if (!strcasecmp(garray[g].white_name, + param[0].val.word)) { sprintf(tmp, "White: %d", g); multicol_store(m, tmp); found = 1; } - if (!strcasecmp(garray[g].black_name,param[0].val.word)) { + if (!strcasecmp(garray[g].black_name, + param[0].val.word)) { sprintf(tmp, "Black: %d", g); multicol_store(m, tmp); found = 1; @@ -698,7 +700,7 @@ com_checkGAME(int p,param_list param) if (found) multicol_pprint(m, p, parray[p].d_width, 2); else - pprintf(p,"No matching games were found.\n"); + pprintf(p, "No matching games were found.\n"); multicol_end(m); return COM_OK; @@ -724,7 +726,7 @@ com_checkGAME(int p,param_list param) if (garray[g].black == p1) { sprintf(tmp, "Black: %d", g); - multicol_store(m,tmp); + multicol_store(m, tmp); found = 1; } } @@ -1596,7 +1598,7 @@ com_asetadmin(int p, param_list param) ASSERT(parray[p].adminLevel >= ADMIN_GOD); - if (!FindPlayer(p, param[0].val.word,&p1, &connected)) + if (!FindPlayer(p, param[0].val.word, &p1, &connected)) return COM_OK; if ((parray[p].adminLevel <= parray[p1].adminLevel) && -- cgit v1.2.3