From ea1aaf2d6e5dad47b788dac5be6cf0427e61d587 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Tue, 16 Sep 2014 13:39:19 -0700 Subject: [PATCH] Minor changes --- package.json | 2 +- src/client.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 28d45bb..1adf3ff 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "shout", "description": "A web IRC client", - "version": "0.31.1", + "version": "0.31.2", "author": "Mattias Erming", "preferGlobal": true, "bin": { diff --git a/src/client.js b/src/client.js index 9ca6230..9b48a90 100644 --- a/src/client.js +++ b/src/client.js @@ -74,7 +74,7 @@ Client.prototype.emit = function(event, data) { if (this.sockets !== null) { this.sockets.in(this.id).emit(event, data); } - if (this.config.log === true) { + if ((this.config || {}).log === true) { if (event == "msg") { var target = this.find(data.chan); if (target) {