From ad16c0f4a4c65fbd852b3b9c14807676fef2bdac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20R=C3=A9mond?= Date: Thu, 26 Jul 2007 09:13:31 +0000 Subject: [PATCH] * src/mod_last.erl: Adapted to mod_privacy changes. * src/mod_privacy.erl: Refactoring to extract records in include file. * src/mod_privacy.hrl: Likewise. SVN Revision: 825 --- ChangeLog | 4 ++++ src/mod_privacy.erl | 18 +----------------- src/mod_privacy.hrl | 16 ++++++++++++++++ 3 files changed, 21 insertions(+), 17 deletions(-) create mode 100644 src/mod_privacy.hrl diff --git a/ChangeLog b/ChangeLog index 93021dc4e..c461c81fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-07-26 Mickael Remond + * src/mod_last.erl: Adapted to mod_privacy changes. + * src/mod_privacy.erl: Refactoring to extract records in include file. + * src/mod_privacy.hrl: Likewise. + * src/mod_roster_odbc.erl: Fixed wrong call. 2007-07-24 Mickael Remond diff --git a/src/mod_privacy.erl b/src/mod_privacy.erl index c5affa8f1..c1f11a36c 100644 --- a/src/mod_privacy.erl +++ b/src/mod_privacy.erl @@ -22,23 +22,7 @@ -include("ejabberd.hrl"). -include("jlib.hrl"). - --record(privacy, {us, - default = none, - lists = []}). - --record(listitem, {type = none, - value = none, - action, - order, - match_all = false, - match_iq = false, - match_message = false, - match_presence_in = false, - match_presence_out = false - }). - --record(userlist, {name = none, list = []}). +-include("mod_privacy.hrl"). start(Host, Opts) -> diff --git a/src/mod_privacy.hrl b/src/mod_privacy.hrl new file mode 100644 index 000000000..4b33c90a9 --- /dev/null +++ b/src/mod_privacy.hrl @@ -0,0 +1,16 @@ +-record(privacy, {us, + default = none, + lists = []}). + +-record(listitem, {type = none, + value = none, + action, + order, + match_all = false, + match_iq = false, + match_message = false, + match_presence_in = false, + match_presence_out = false + }). + +-record(userlist, {name = none, list = []}).