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", "name": "shout",
"description": "A web IRC client", "description": "A web IRC client",
"version": "0.31.1", "version": "0.31.2",
"author": "Mattias Erming", "author": "Mattias Erming",
"preferGlobal": true, "preferGlobal": true,
"bin": { "bin": {

View file

@ -74,7 +74,7 @@ Client.prototype.emit = function(event, data) {
if (this.sockets !== null) { if (this.sockets !== null) {
this.sockets.in(this.id).emit(event, data); this.sockets.in(this.id).emit(event, data);
} }
if (this.config.log === true) { if ((this.config || {}).log === true) {
if (event == "msg") { if (event == "msg") {
var target = this.find(data.chan); var target = this.find(data.chan);
if (target) { if (target) {