diff options
author | dequis <dx@dxzone.com.ar> | 2016-07-24 14:57:19 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-07-25 20:42:32 -0300 |
commit | 57f81ec3befe532d0533938efcfc650d80310f61 (patch) | |
tree | 4b0df761553440c6ff0ffa47c2cca149730b2e4b | |
parent | 9ae8f82b01b85d34f738a1e28c8894785ca7f0ee (diff) |
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)
-rw-r--r-- | protocols/purple/purple.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |