From 1731fcdcad60d43c03b9e9d1ef135adfd89df463 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Tue, 9 Sep 2014 15:32:19 -0700 Subject: [PATCH] Fix custom name --- package.json | 2 +- src/models/network.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 83061fee..b5af4ea8 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/models/network.js b/src/models/network.js index 8be8857e..29735f65 100644 --- a/src/models/network.js +++ b/src/models/network.js @@ -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}) );