]> granicus.if.org Git - ejabberd/commitdiff
* src/mod_last.erl: Adapted to mod_privacy changes.
authorMickaël Rémond <mickael.remond@process-one.net>
Thu, 26 Jul 2007 09:13:31 +0000 (09:13 +0000)
committerMickaël Rémond <mickael.remond@process-one.net>
Thu, 26 Jul 2007 09:13:31 +0000 (09:13 +0000)
* src/mod_privacy.erl: Refactoring to extract records in include file.
* src/mod_privacy.hrl: Likewise.

SVN Revision: 825

ChangeLog
src/mod_privacy.erl
src/mod_privacy.hrl [new file with mode: 0644]

index 93021dc4eff58dfbcd579aea05fe36a793111efe..c461c81fdf8c233c983f0551e1784f6a27bc2b7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-07-26  Mickael Remond  <mickael.remond@process-one.net>
 
+       * 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  <mickael.remond@process-one.net>
index c5affa8f16c1f540388728504643320a47211f27..c1f11a36c0afc32e38602b106b979c8e845bf8ec 100644 (file)
 
 -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 (file)
index 0000000..4b33c90
--- /dev/null
@@ -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 = []}).