an experimental irc client

Document example on using a password command

authored by

Hugo Osvaldo Barrera and committed by rockorager.dev 47b883bd b97f0d72

+18
+18
README.md
··· 52 comlink.bind("ctrl+c", "quit") 53 ``` 54 55 ## Contributing 56 57 Patches accepted on the [mailing list](https://lists.sr.ht/~rockorager/comlink)
··· 52 comlink.bind("ctrl+c", "quit") 53 ``` 54 55 + Storing passwords in configuration files is generally considered a poor 56 + security practice. The following example reads the password from an external 57 + password manager: 58 + 59 + ```lua 60 + local comlink = require("comlink") 61 + 62 + local proc = 63 + assert(io.popen("hiq -dFpassword proto=irc address=irc.example.com nickname=alex", "r")) 64 + local password = proc:read("*l") 65 + proc:close() 66 + 67 + local config = { 68 + -- …other fields here… 69 + password = password, 70 + } 71 + ``` 72 + 73 ## Contributing 74 75 Patches accepted on the [mailing list](https://lists.sr.ht/~rockorager/comlink)