]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
ip_cloaking: remove some unnecessary braces
authorJilles Tjoelker <redacted>
Fri, 19 Sep 2008 21:44:56 +0000 (23:44 +0200)
committerJilles Tjoelker <redacted>
Fri, 19 Sep 2008 21:44:56 +0000 (23:44 +0200)
extensions/ip_cloaking.c

index f4fb75e33e9395fba4e440ab4c74bbfc751590f9..e0e4ca22a4d290727024766a8bb540c0803e6f8e 100644 (file)
@@ -92,16 +92,11 @@ do_host_cloak_ip(const char *inbuf, char *outbuf)
                 * the actual cloaking would get ugly
                 */
                for (tptr = outbuf; *tptr != '\0'; tptr++)
-               {
-                       if (*tptr == ':') {
+                       if (*tptr == ':')
                                totalcount++;
-                       }
-               }
        }
        else if (!strchr(outbuf, '.'))
-       {
                return;
-       }
 
        for (tptr = outbuf; *tptr != '\0'; tptr++) 
        {
@@ -160,9 +155,7 @@ do_host_cloak_host(const char *inbuf, char *outbuf)
        for (tptr = outbuf; *tptr != '\0'; tptr++)
        {
                if (isdigit(*tptr))
-               {
                        *tptr = '0' + (*tptr + accum) % 10;
-               }
 
                accum = (accum << 1) | (accum >> 31);
        }