martynsmith / node-irc

NodeJS IRC client library
GNU General Public License v3.0
1.33k stars 424 forks source link

Censor password in debug output #501

Open graulund opened 7 years ago

graulund commented 7 years ago

(Re-added from botched pull request #497)

When you're developing something that uses this IRC library, with other people watching, and using the library's debug mode, it would be nice if it does not print your IRC password in plain text into the console.

So I made a change that detects any PASS commands being output, and censors the output in a fairly simple manner.

I realise there can be more than one opinion about this, so obviously feel free to not merge it, but it's just a problem that I personally experienced. Thanks for a great library! :)