diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-10-09 15:04:16 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-10-09 15:04:16 +0200 |
commit | fe4a256c05727f43c6c793b620b1638b88c830b3 (patch) | |
tree | b37076f8fa9f1817ceae99989d2878a58c944ef8 /src/core/ephraim_roster_handler.erl | |
parent | e6d184833a8c46d3ecd3a407c66c561bb0d47123 (diff) | |
download | ephraim-master.tar ephraim-master.zip |
Diffstat (limited to 'src/core/ephraim_roster_handler.erl')
-rw-r--r-- | src/core/ephraim_roster_handler.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ephraim_roster_handler.erl b/src/core/ephraim_roster_handler.erl index fa7c1c7..8056797 100644 --- a/src/core/ephraim_roster_handler.erl +++ b/src/core/ephraim_roster_handler.erl @@ -1,14 +1,14 @@ -module(ephraim_roster_handler). -include_lib("exmpp/include/exmpp_client.hrl"). --behaviour(gen_event). +-behaviour(advanced_event). -export([start/2, stop/1]). -export([init/1, handle_event/2, handle_call/2, handle_info/2, terminate/2, code_change/3]). start(EventManager, Roster) -> - gen_event:add_handler(EventManager, ?MODULE, Roster). + advanced_event:add_handler(EventManager, ?MODULE, Roster). stop(EventManager) -> - gen_event:delete_handler(EventManager, ?MODULE, []). + advanced_event:delete_handler(EventManager, ?MODULE, []). init(Roster) -> {ok, Roster}. |