mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-15 00:47:46 +01:00
Add nick to config.json
This commit is contained in:
parent
47b12cc5d9
commit
a920914b4c
@ -90,6 +90,8 @@ gamja default settings can be set using a `config.json` file at the root:
|
|||||||
// require it, and "disabled" to never ask for a password. Defaults to
|
// require it, and "disabled" to never ask for a password. Defaults to
|
||||||
// "optional".
|
// "optional".
|
||||||
"auth": "optional",
|
"auth": "optional",
|
||||||
|
// Default nickname (string).
|
||||||
|
"nick": "asdf",
|
||||||
// Don't display the login UI, immediately connect to the server
|
// Don't display the login UI, immediately connect to the server
|
||||||
// (boolean).
|
// (boolean).
|
||||||
"autoconnect": true,
|
"autoconnect": true,
|
||||||
|
@ -201,6 +201,9 @@ export default class App extends Component {
|
|||||||
} else if (typeof config.server.autojoin === "string") {
|
} else if (typeof config.server.autojoin === "string") {
|
||||||
connectParams.autojoin = [config.server.autojoin];
|
connectParams.autojoin = [config.server.autojoin];
|
||||||
}
|
}
|
||||||
|
if (typeof config.server.nick === "string") {
|
||||||
|
connectParams.nick = config.server.nick;
|
||||||
|
}
|
||||||
if (typeof config.server.autoconnect === "boolean") {
|
if (typeof config.server.autoconnect === "boolean") {
|
||||||
connectParams.autoconnect = config.server.autoconnect;
|
connectParams.autoconnect = config.server.autoconnect;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user