Fix custom name
This commit is contained in:
parent
0f754ea703
commit
1731fcdcad
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "shout",
|
"name": "shout",
|
||||||
"description": "A web IRC client",
|
"description": "A web IRC client",
|
||||||
"version": "0.20.0",
|
"version": "0.20.1",
|
||||||
"author": "Mattias Erming",
|
"author": "Mattias Erming",
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -11,9 +11,9 @@ function Network(attr) {
|
||||||
connected: false,
|
connected: false,
|
||||||
host: "",
|
host: "",
|
||||||
id: id++,
|
id: id++,
|
||||||
name: prettify(attr.host),
|
irc: null,
|
||||||
irc: null
|
|
||||||
}, attr));
|
}, attr));
|
||||||
|
this.name = attr.name || prettify(attr.host);
|
||||||
this.channels.unshift(
|
this.channels.unshift(
|
||||||
new Chan({name: this.name, type: Chan.Type.LOBBY})
|
new Chan({name: this.name, type: Chan.Type.LOBBY})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue