From c1192ebedb45cb8e63b5985a0935f6690a0ac06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Wed, 15 Nov 2006 11:41:26 +0000 Subject: * src/mod_muc/mod_muc_room.erl: API improvement: It is now easier to extract data from the MUC room process (EJAB-157). SVN Revision: 677 --- src/mod_muc/mod_muc_room.erl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mod_muc') diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index 6c4352d17..8f4db7583 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -648,6 +648,10 @@ handle_sync_event({get_disco_item, JID, Lang}, _From, StateName, StateData) -> false end, {reply, Reply, StateName, StateData}; +handle_sync_event(get_config, _From, StateName, StateData) -> + {reply, StateData#state.config, StateName, StateData}; +handle_sync_event(get_state, _From, StateName, StateData) -> + {reply, StateData, StateName, StateData}; handle_sync_event(_Event, _From, StateName, StateData) -> Reply = ok, {reply, Reply, StateName, StateData}. -- cgit v1.2.3