From ee9948a7765c0a0793f747ea1e72ad98af39e582 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Tue, 6 Sep 2016 15:44:36 +0200 Subject: [PATCH] conditional setmosq() --- recorder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recorder.c b/recorder.c index 4865d1a..bfeb9c1 100644 --- a/recorder.c +++ b/recorder.c @@ -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"); }