mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-18 04:38:51 +00:00
support --auth/--sec/--prompt-sec on req.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user