Explorar el Código

Don't count color/bold chars when calculating CAPS percentage (#8)

Bryan Drewery hace 14 años
padre
commit
7ac269dedf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/mod/irc.mod/irc.c

+ 1 - 1
src/mod/irc.mod/irc.c

@@ -140,7 +140,7 @@ detect_offense(memberlist* m, struct chanset_t *chan, char *msg)
   if (caps_limit) {
     char *msg_check = msg;
     while (msg_check && *msg_check) {
-      if (!egg_isspace(*msg_check)) {
+      if (!egg_isspace(*msg_check) && *msg_check != 3 && *msg_check != 2) {
         ++tot;
       }
       ++msg_check;