Join Nostr
2023-03-10 03:43:33 UTC

Ron Stoner on Nostr: The “develop” branch of nostr-irc now protects you from accidentally posting your ...

The “develop” branch of nostr-irc now protects you from accidentally posting your nsec private key. I’ll be merging to master once I have some other features updated. All it took was:

```
if re.search(r'nsec[a-z0-9]{32,64}$', user_input):
messages.addstr("\n *** Error: Potential exposure of nsec private key. Message denied.\n\n”)
```

Magic! 🎩🪄