print event more consistently and auth when required and allowed.

This commit is contained in:
fiatjaf
2023-12-07 18:12:12 -03:00
parent 26b1aa359a
commit 4d75605c20
2 changed files with 51 additions and 16 deletions

View File

@@ -164,3 +164,7 @@ func gatherSecretKeyFromArguments(c *cli.Context) (string, error) {
return sec, nil
}
func isAuthRequired(msg string) bool {
return strings.HasPrefix(msg, "msg: auth-required:")
}