Minor changes
This commit is contained in:
parent
f3aee8f6cb
commit
ea1aaf2d6e
|
@ -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": {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue