Fix custom name

This commit is contained in:
Mattias Erming 2014-09-09 15:32:19 -07:00
parent 0f754ea703
commit 1731fcdcad
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "shout",
"description": "A web IRC client",
"version": "0.20.0",
"version": "0.20.1",
"author": "Mattias Erming",
"preferGlobal": true,
"bin": {

View File

@ -11,9 +11,9 @@ function Network(attr) {
connected: false,
host: "",
id: id++,
name: prettify(attr.host),
irc: null
irc: null,
}, attr));
this.name = attr.name || prettify(attr.host);
this.channels.unshift(
new Chan({name: this.name, type: Chan.Type.LOBBY})
);