From 57f81ec3befe532d0533938efcfc650d80310f61 Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 24 Jul 2016 14:57:19 -0300 Subject: purple: Don't try to init module if it's already initialized This only happens if the user has used / forced daemon mode (for example, when debugging with BITLBEE_DEBUG=1) --- protocols/purple/purple.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/purple') diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index db553407..58484132 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -1446,6 +1446,12 @@ void purple_initmodule() GString *help; char *dir; + if (purple_get_core() != NULL) { + log_message(LOGLVL_ERROR, "libpurple already initialized. " + "Please use inetd or ForkDaemon mode instead."); + return; + } + g_assert((int) B_EV_IO_READ == (int) PURPLE_INPUT_READ); g_assert((int) B_EV_IO_WRITE == (int) PURPLE_INPUT_WRITE); -- cgit v1.2.3