diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:59:39 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 17:59:39 +0100 |
commit | a088325693207118743a67e52eb4e91a4d456e6d (patch) | |
tree | 6e36fd333ba98a5c409c48608a677b6d4e3217ad /FICS/utils.c | |
parent | 52cf41b6df67171ed301ce783d9744d4f5417c81 (diff) |
Reformatted safechar()
Diffstat (limited to 'FICS/utils.c')
-rw-r--r-- | FICS/utils.c | 11 |
1 files 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 |