support --auth/--sec/--prompt-sec on req.

This commit is contained in:
fiatjaf
2023-12-09 16:32:04 -03:00
parent ed3156ae10
commit b7b61c0723
7 changed files with 78 additions and 65 deletions

View File

@@ -97,8 +97,7 @@ var nsecbunker = &cli.Command{
log("~ responding with %s\n", string(jresp))
if alwaysYes || harmless || askUserIfWeCanRespond() {
_, err := ie.Relay.Publish(c.Context, eventResponse)
if err == nil {
if err := ie.Relay.Publish(c.Context, eventResponse); err == nil {
log("* sent response!\n")
} else {
log("* failed to send response: %s\n", err)