fix build issues

This commit is contained in:
Blake Ridgway
2025-11-30 19:28:47 -06:00
parent 722d0461dc
commit 32c42b6854

View File

@@ -452,7 +452,7 @@ func isSpamMessage(message string) bool {
}
}
}
if letterCount > 0 && capsCount/letterCount > 0.7 {
if letterCount > 0 && float64(capsCount)/float64(letterCount) > 0.7 {
return true
}
}
@@ -488,7 +488,7 @@ func isValidName(name string) bool {
numberCount++
}
}
if numberCount > len(name)/3 {
if numberCount > 0 && float64(numberCount)/float64(len(name)) > 0.33 {
return false
}