Explorar o código

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

Bryan Drewery %!s(int64=14) %!d(string=hai) anos
pai
achega
7ac269dedf
Modificáronse 1 ficheiros con 1 adicións e 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;