Sfoglia il codice sorgente

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

Bryan Drewery 14 anni fa
parent
commit
7ac269dedf
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;