diff options
-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); |