aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-01 21:52:23 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-01 21:52:23 +0200
commit431db98250c5e88f066a27d9c06e67e6cf1b984c (patch)
tree696a21daf87e6aecf5e1fca8c2adbe7d40dbd950
parent7b22b1546f51fcd4281d19e2e91d95cee31172a6 (diff)
Reformatted functions
-rw-r--r--FICS/variable.c76
1 files changed, 40 insertions, 36 deletions
diff --git a/FICS/variable.c b/FICS/variable.c
index 7d77285..f7bf314 100644
--- a/FICS/variable.c
+++ b/FICS/variable.c
@@ -241,52 +241,56 @@ PRIVATE int set_jprivate(int p, char *var, char *val)
return VAR_OK;
}
-PRIVATE int set_automail(int p, char *var, char *val)
+PRIVATE int
+set_automail(int p, char *var, char *val)
{
- if (set_boolean_var(&parray[p].automail, val) < 0)
- return VAR_BADVAL;
- if (parray[p].automail)
- pprintf(p, "Your games will be mailed to you.\n");
- else
- pprintf(p, "Your games will not be mailed to you.\n");
- return VAR_OK;
+ if (set_boolean_var(&parray[p].automail, val) < 0)
+ return VAR_BADVAL;
+ if (parray[p].automail)
+ pprintf(p, "Your games will be mailed to you.\n");
+ else
+ pprintf(p, "Your games will not be mailed to you.\n");
+ return VAR_OK;
}
-PRIVATE int set_mailmess(int p, char *var, char *val)
+PRIVATE int
+set_mailmess(int p, char *var, char *val)
{
- if (!parray[p].registered) {
- pprintf(p, "Unregistered players may not receive messages.\n");
- return VAR_OK;
- }
- if (set_boolean_var(&parray[p].i_mailmess, val) < 0)
- return VAR_BADVAL;
- if (parray[p].i_mailmess)
- pprintf(p, "Your messages will be mailed to you.\n");
- else
- pprintf(p, "Your messages will not be mailed to you.\n");
- return VAR_OK;
+ if (!parray[p].registered) {
+ pprintf(p, "Unregistered players may not receive messages.\n");
+ return VAR_OK;
+ }
+ if (set_boolean_var(&parray[p].i_mailmess, val) < 0)
+ return VAR_BADVAL;
+ if (parray[p].i_mailmess)
+ pprintf(p, "Your messages will be mailed to you.\n");
+ else
+ pprintf(p, "Your messages will not be mailed to you.\n");
+ return VAR_OK;
}
-PRIVATE int set_pgn(int p, char *var, char *val)
+PRIVATE int
+set_pgn(int p, char *var, char *val)
{
- if (set_boolean_var(&parray[p].pgn, val) < 0)
- return VAR_BADVAL;
- if (parray[p].pgn)
- pprintf(p, "Games will now be mailed to you in PGN.\n");
- else
- pprintf(p, "Games will now be mailed to you in FICS format.\n");
- return VAR_OK;
+ if (set_boolean_var(&parray[p].pgn, val) < 0)
+ return VAR_BADVAL;
+ if (parray[p].pgn)
+ pprintf(p, "Games will now be mailed to you in PGN.\n");
+ else
+ pprintf(p, "Games will now be mailed to you in FICS format.\n");
+ return VAR_OK;
}
-PRIVATE int set_bell(int p, char *var, char *val)
+PRIVATE int
+set_bell(int p, char *var, char *val)
{
- if (set_boolean_var(&parray[p].bell, val) < 0)
- return VAR_BADVAL;
- if (parray[p].bell)
- pprintf(p, "Bell on.\n");
- else
- pprintf(p, "Bell off.\n");
- return VAR_OK;
+ if (set_boolean_var(&parray[p].bell, val) < 0)
+ return VAR_BADVAL;
+ if (parray[p].bell)
+ pprintf(p, "Bell on.\n");
+ else
+ pprintf(p, "Bell off.\n");
+ return VAR_OK;
}
PRIVATE int