fix disabledEvents

This commit is contained in:
Amish Shah
2016-11-27 12:01:51 +00:00
parent dc6c1140bc
commit 9323882a8d

View File

@@ -65,7 +65,7 @@ class WebSocketManager extends EventEmitter {
* @type {Object}
*/
this.disabledEvents = {};
for (const event in client.options.disabledEvents) this.disabledEvents[event] = true;
for (const event of client.options.disabledEvents) this.disabledEvents[event] = true;
this.first = true;
}