Merge pull request #5 from jayson/master

Adding ID to scan results and newline to bad command
slack
Jordan Orelli 10 years ago
commit 31e70ce85c

@ -329,7 +329,7 @@ func runCommand(conn *Connection, name string, args ...string) {
}
if conn.InTransit() && !cmd.mobile {
fmt.Fprintf(conn, "command %s can not be used while in transit", name)
fmt.Fprintf(conn, "command %s can not be used while in transit\n", name)
return
}
cmd.handler(conn, args...)

@ -248,7 +248,7 @@ func deliverReply(id int, echo int, results *scanResults) {
if results.negative() {
return
}
fmt.Fprintf(conn, "scan results from %s (%v away):\n", source.name, delay)
fmt.Fprintf(conn, "scan results from %s [id: %d] (%v away):\n", source.name, echo, delay)
results.write(conn)
})
}

Loading…
Cancel
Save