diff options
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r-- | src/daemon/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c index 302a9ce..41e798b 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -24,6 +24,7 @@ #include <stdio.h> #include "settings.h" #include "net.h" +#include "purple.h" /* the logic is a placeholder right now */ int main(int argc, char **argv) @@ -35,6 +36,9 @@ int main(int argc, char **argv) settings_init(); net_init(setting_port()); /* TODO: get port from settings. */ + if (purple_init() && setting_verbose()) { + fprintf(stderr, "libpurple initialization failed\n"); + } /* by default and if running by as a system service, the init system * needs to keep control of the process and thus only detach if |