aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-01 21:50:03 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-01 21:50:03 +0200
commit7b22b1546f51fcd4281d19e2e91d95cee31172a6 (patch)
tree2ca52fe97d607078d1fa9f4a5efe7c0bd1be2485 /FICS
parentb95943a47081125e0923098f2ebac1657b6d8a23 (diff)
Reformatted set_highlight()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/variable.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/FICS/variable.c b/FICS/variable.c
index 547db76..7d77285 100644
--- a/FICS/variable.c
+++ b/FICS/variable.c
@@ -289,26 +289,25 @@ PRIVATE int set_bell(int p, char *var, char *val)
return VAR_OK;
}
-PRIVATE int set_highlight(int p, char *var, char *val)
+PRIVATE int
+set_highlight(int p, char *var, char *val)
{
-/* if (set_boolean_var (&parray[p].highlight, val) < 0) return VAR_BADVAL;
- */
- int v = -1;
+ int v = -1;
- if (!val)
- return VAR_BADVAL;
- if (sscanf(val, "%d", &v) != 1)
- return VAR_BADVAL;
- if ((v < 0) || (v > 15))
- return VAR_BADVAL;
+ if (!val)
+ return VAR_BADVAL;
+ if (sscanf(val, "%d", &v) != 1)
+ return VAR_BADVAL;
+ if (v < 0 || v > 15)
+ return VAR_BADVAL;
- if ((parray[p].highlight = v)) {
- pprintf(p, "Highlight is now style ");
- pprintf_highlight(p, "%d", v);
- pprintf(p, ".\n");
- } else
- pprintf(p, "Highlight is off.\n");
- return VAR_OK;
+ if ((parray[p].highlight = v)) {
+ pprintf(p, "Highlight is now style ");
+ pprintf_highlight(p, "%d", v);
+ pprintf(p, ".\n");
+ } else
+ pprintf(p, "Highlight is off.\n");
+ return VAR_OK;
}
PRIVATE int