conditional setmosq()

This commit is contained in:
Jan-Piet Mens
2016-09-06 15:44:36 +02:00
parent 0a50e51916
commit ee9948a776

View File

@@ -1622,7 +1622,9 @@ int main(int argc, char **argv)
return rc;
}
/* Explicitly set MQTT connection for Lua's otr_publish() */
#ifdef WITH_LUA
hooks_setmosq(mosq);
#endif
} else {
olog(LOG_INFO, "Not using MQTT: disabled by port=0");
}