frontend: fix telegram bot responding to non-commands

This commit is contained in:
Lan Tian
2020-07-10 20:56:37 +08:00
parent 9fc5076681
commit 862e2aca7a

View File

@@ -142,6 +142,8 @@ func webHandlerTelegramBot(w http.ResponseWriter, r *http.Request) {
/[trace|trace6] <IP>
/whois <Target>
`
} else {
return
}
commandResult = strings.TrimSpace(commandResult)