This commit is contained in:
Gregory Salaun 2024-10-09 20:30:23 +03:00
parent f424633083
commit a394767832
2 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -138,7 +138,7 @@ func SanitizeClusterMessage(message string) ClusterMessage {
} }
func sendTelnetMessage(conn net.Conn, message string) { func sendTelnetMessage(conn net.Conn, message string) {
if message != "XV9Q-5" { if !strings.HasPrefix(message, "XV9Q") {
time.Sleep(2 * time.Second) time.Sleep(2 * time.Second)
} }
_, err := conn.Write([]byte(message + "\n")) _, err := conn.Write([]byte(message + "\n"))
@ -214,6 +214,11 @@ func main() {
login = true login = true
} }
if message != "" && strings.Contains("login:", message) {
go sendTelnetMessage(conn, "XV9Q-3")
login = true
}
// Set the FT8, CW, FT4 and only spots from Vietnam filters only once // Set the FT8, CW, FT4 and only spots from Vietnam filters only once
if login && !filters_sent { if login && !filters_sent {
go sendFilters(conn) go sendFilters(conn)