diff options
author | shennetsind <ind@henn.et> | 2013-09-25 08:50:52 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-09-25 08:50:52 -0300 |
commit | 1114eb3da58b078258a824424fef687a1ccee90c (patch) | |
tree | 1b9c3e4ef48021ce89b331bba2d49061bd08f341 /src/login/ipban_sql.c | |
parent | 78c7c6bf04a6c96d92524ae37ad165e65f599eb8 (diff) | |
download | hercules-1114eb3da58b078258a824424fef687a1ccee90c.tar.gz hercules-1114eb3da58b078258a824424fef687a1ccee90c.tar.bz2 hercules-1114eb3da58b078258a824424fef687a1ccee90c.tar.xz hercules-1114eb3da58b078258a824424fef687a1ccee90c.zip |
Renamed iTimer interface to timer.
Also removed duplicate mentions of timer within calls to shorten.
Diffstat (limited to 'src/login/ipban_sql.c')
-rw-r--r-- | src/login/ipban_sql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/ipban_sql.c b/src/login/ipban_sql.c index fd9f1a4a1..df516a3f6 100644 --- a/src/login/ipban_sql.c +++ b/src/login/ipban_sql.c @@ -86,8 +86,8 @@ void ipban_init(void) if( login_config.ipban_cleanup_interval > 0 ) { // set up periodic cleanup of connection history and active bans - iTimer->add_timer_func_list(ipban_cleanup, "ipban_cleanup"); - cleanup_timer_id = iTimer->add_timer_interval(iTimer->gettick()+10, ipban_cleanup, 0, 0, login_config.ipban_cleanup_interval*1000); + timer->add_func_list(ipban_cleanup, "ipban_cleanup"); + cleanup_timer_id = timer->add_interval(timer->gettick()+10, ipban_cleanup, 0, 0, login_config.ipban_cleanup_interval*1000); } else // make sure it gets cleaned up on login-server start regardless of interval-based cleanups ipban_cleanup(0,0,0,0); } @@ -100,7 +100,7 @@ void ipban_final(void) if( login_config.ipban_cleanup_interval > 0 ) // release data - iTimer->delete_timer(cleanup_timer_id, ipban_cleanup); + timer->delete(cleanup_timer_id, ipban_cleanup); ipban_cleanup(0,0,0,0); // always clean up on login-server stop |