diff --git a/hooks.c b/hooks.c index 46faf80..32952a9 100644 --- a/hooks.c +++ b/hooks.c @@ -86,7 +86,9 @@ struct luadata *hooks_init(struct udata *ud, char *script) ld->L = luaL_newstate(); luaL_openlibs(ld->L); +#ifdef WITH_MQTT MQTTconn = ud->mosq; +#endif /* * Set up a global with some values.