Ver Fonte

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

Bryan Drewery há 14 anos atrás
pai
commit
7ac269dedf
1 ficheiros alterados com 1 adições e 1 exclusões
  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) {
   if (caps_limit) {
     char *msg_check = msg;
     char *msg_check = msg;
     while (msg_check && *msg_check) {
     while (msg_check && *msg_check) {
-      if (!egg_isspace(*msg_check)) {
+      if (!egg_isspace(*msg_check) && *msg_check != 3 && *msg_check != 2) {
         ++tot;
         ++tot;
       }
       }
       ++msg_check;
       ++msg_check;