25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

* src/mod_ip_blacklist.erl: Update the list every 6 hours.

SVN Revision: 1319
This commit is contained in:
Mickaël Rémond 2008-05-05 16:31:48 +00:00
parent 740ce75599
commit e4f098a104

View 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.