* src/mod_ip_blacklist.erl: Update the list every 6 hours.
authorMickaël Rémond <mickael.remond@process-one.net>
Mon, 5 May 2008 16:31:48 +0000 (16:31 +0000)
committerMickaël Rémond <mickael.remond@process-one.net>
Mon, 5 May 2008 16:31:48 +0000 (16:31 +0000)
SVN Revision: 1319

src/mod_ip_blacklist.erl

index 5fdacc360685db1501e17fb58bf725882c2f4440..095c501a4a09485903babad56342c9967ffc20fc 100644 (file)
@@ -70,7 +70,7 @@ init(State)->
     %% Register hooks for blacklist
     ejabberd_hooks:add(check_bl_c2s, ?MODULE, is_ip_in_c2s_blacklist, 50),
     %% Set timer: Download the blacklist file every 6 hours
-    timer:apply_interval(timer:minutes(?UPDATE_INTERVAL), ?MODULE, update_bl_c2s, []),
+    timer:apply_interval(timer:hours(?UPDATE_INTERVAL), ?MODULE, update_bl_c2s, []),
     loop(State).
 
 %% Remove timer when stop is received.