From dfc0469a184ae978f40cac9df20d399fdeca99a3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 17 Jul 2010 15:49:23 +0200 Subject: Read JID and server name from config file --- src/core/ephraim.erl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/core/ephraim.erl') diff --git a/src/core/ephraim.erl b/src/core/ephraim.erl index a7a872b..d558eda 100644 --- a/src/core/ephraim.erl +++ b/src/core/ephraim.erl @@ -23,7 +23,14 @@ stop() -> -spec init() -> ok. init() -> register(ephraim, self()), - + + Config = spawn(ephraim_config, init, []), + % Wait for config process + receive + {Config, started} -> + io:format("Reading config file...~n") + end, + GUI = spawn(ephraim_gui, init, []), Conn = spawn(ephraim_conn, init, []), Roster = spawn(ephraim_roster, init, []), -- cgit v1.2.3