From a088325693207118743a67e52eb4e91a4d456e6d Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 17:59:39 +0100 Subject: Reformatted safechar() --- FICS/utils.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/FICS/utils.c b/FICS/utils.c index 5aaca9b..9f0647b 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -504,12 +504,13 @@ PUBLIC char *stolower(char *str) return str; } -PUBLIC int safechar(int c) +PUBLIC int +safechar(int c) { - if ((c == '>') || (c == '!') || (c == '&') || (c == '*') || (c == '?') || - (c == '/') || (c == '<') || (c == '|') || (c == '`') || (c == '$')) - return 0; - return 1; + if (c == '>' || c == '!' || c == '&' || c == '*' || c == '?' || + c == '/' || c == '<' || c == '|' || c == '`' || c == '$') + return 0; + return 1; } PUBLIC int -- cgit v1.2.3