aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/irc.c b/irc.c
index 579fb8cf..3044c593 100644
--- a/irc.c
+++ b/irc.c
@@ -164,7 +164,11 @@ irc_t *irc_new( int fd )
g_free( myhost );
g_free( host );
+ /* libpurple doesn't like fork()s after initializing itself, so this
+ is the right moment to initialize it. */
+#ifdef WITH_PURPLE
nogaim_init();
+#endif
for( l = irc_plugins; l; l = l->next )
{