Minor changes

This commit is contained in:
Mattias Erming 2014-09-16 13:39:19 -07:00
parent f3aee8f6cb
commit ea1aaf2d6e
2 changed files with 2 additions and 2 deletions

View File

@ -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": {

View File

@ -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) {