lint & custom module lack detection

This commit is contained in:
bordun 2020-10-27 11:43:05 +01:00
parent 93363026e3
commit cc45928ebf
2 changed files with 4 additions and 5 deletions

View file

@ -157,9 +157,11 @@ var bindCallbacks = function(callbacks) {
var clientInfos = {address: client.address, id: client.id}
var customModule = settings.read('custom-module')
for (let name in callbacks) {
client.on(name, (data)=>{
if (osc.customModule) {
if (customModule) {
osc.customModuleEventEmitter.emit(name, data, clientInfos)
}
callbacks[name](data, client.id)