aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/purple/purple.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/purple/purple.c')
-rw-r--r--protocols/purple/purple.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index 4f10c9e7..87d628c3 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -1587,6 +1587,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);