mirror of
https://github.com/fiatjaf/nak.git
synced 2025-09-01 06:20:46 -04:00
print event more consistently and auth when required and allowed.
This commit is contained in:
@@ -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:")
|
||||
}
|
||||
|
Reference in New Issue
Block a user