Merge pull request #3008 from thelounge/xpaw/webirc-conf
Add `webirc` key and commas to make it more understandable
This commit is contained in:
commit
cf4d2bdfe6
@ -297,10 +297,10 @@ module.exports = {
|
|||||||
// For example:
|
// For example:
|
||||||
//
|
//
|
||||||
// ```json
|
// ```json
|
||||||
// {
|
// webirc: {
|
||||||
// "irc.example.net": "password1",
|
// "irc.example.net": "password1",
|
||||||
// "irc.example.org": "passw0rd"
|
// "irc.example.org": "passw0rd",
|
||||||
// }
|
// },
|
||||||
// ```
|
// ```
|
||||||
//
|
//
|
||||||
// - **Advanced**: an object where keys are IRC hosts and values are functions
|
// - **Advanced**: an object where keys are IRC hosts and values are functions
|
||||||
@ -308,14 +308,14 @@ module.exports = {
|
|||||||
// object to be directly passed to `irc-framework`. For example:
|
// object to be directly passed to `irc-framework`. For example:
|
||||||
//
|
//
|
||||||
// ```js
|
// ```js
|
||||||
// {
|
// webirc: {
|
||||||
// "irc.example.net": (client, args, trusted) => ({
|
// "irc.example.net": (client, args, trusted) => ({
|
||||||
// username: "thelounge",
|
// username: "thelounge",
|
||||||
// password: "password1",
|
// password: "password1",
|
||||||
// address: args.ip,
|
// address: args.ip,
|
||||||
// hostname: `webirc/${args.hostname}`
|
// hostname: `webirc/${args.hostname}`
|
||||||
// })
|
// }),
|
||||||
// }
|
// },
|
||||||
// ```
|
// ```
|
||||||
//
|
//
|
||||||
// This value is set to `null` to disable WEBIRC by default.
|
// This value is set to `null` to disable WEBIRC by default.
|
||||||
|
Loading…
Reference in New Issue
Block a user