]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/colours.h
Add extban +b c: - blocks colour from matching users, same as chmode +c
[user/henk/code/inspircd.git] / win / colours.h
index e90782bc93c72f88b4ceeb915d3cf312e280704b..b44b3d5aebb9796c29db0f4c4d5943c0a5d41216 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -41,14 +41,14 @@ int printf_c(const char * format, ...)
        int t;
        int c = 0;
        const char * p = message;
-       while ( (*p) && (*p != 0) )
+       while (*p != 0)
        {
                if (*p == '\033')
                {
                        // Escape sequence -> copy into the temp buffer, and parse the color.
                        p++;
                        t = 0;
-                       while(*p != 'm')
+                       while ((*p) && (*p != 'm'))
                        {
                                temp[t++] = *p;
                                ++p;