added ipv4 validation

This commit is contained in:
marko
2024-10-03 17:46:43 +02:00
parent 97e41eece0
commit 12f28a6623
3 changed files with 38 additions and 3 deletions

View File

@@ -86,13 +86,13 @@ func (nkbot *NekoUKrovuBot) handleChat(ch *xmpp.Chat) {
func (nkbot *NekoUKrovuBot) sanitizeInput(input string) bool {
if len(input) > 50 {
return false
return true
}
if !utf8.ValidString(input) {
return false
return true
}
return true
}