+ if (strlen(text) > 10 && chptr->mode.mode & MODE_NOCAPS)
+ {
+ for(contor=0; contor < strlen(text); contor++)
+ {
+ if(IsUpper(text[contor]) && !isdigit(text[contor]))
+ caps++;
+ len++;
+ }
+ if(((caps*100)/(len)) >= 50)
+ {
+ sendto_one_numeric(source_p, ERR_CANNOTSENDTOCHAN,
+ form_str(ERR_CANNOTSENDTOCHAN), chptr->chname);
+ return;
+ }
+ }