From 469102135fd5429a4225afe378bed3e82dc81d31 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 22 Sep 2013 09:56:48 +0200 Subject: Corrected various hardcoded database table names - Added an elemental_db setting to inter-server.conf (elemental table) - Switched an instance of hardcoded `ipbanlist` to use the ipban_table setting; thanks to Takkun, related to issue #135 - Switched two instances of hardcoded `char` to use the char_db setting - Added a TODO notice about the usage of the login table (on a side note, hardcoded) from the login server (related to issue #142) Signed-off-by: Haru --- src/login/ipban_sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/login') diff --git a/src/login/ipban_sql.c b/src/login/ipban_sql.c index fd9f1a4a1..d037a5ddc 100644 --- a/src/login/ipban_sql.c +++ b/src/login/ipban_sql.c @@ -252,7 +252,7 @@ int ipban_cleanup(int tid, unsigned int tick, int id, intptr_t data) if( !login_config.ipban ) return 0;// ipban disabled - if( SQL_ERROR == SQL->Query(sql_handle, "DELETE FROM `ipbanlist` WHERE `rtime` <= NOW()") ) + if( SQL_ERROR == SQL->Query(sql_handle, "DELETE FROM `%s` WHERE `rtime` <= NOW()", ipban_table) ) Sql_ShowDebug(sql_handle); return 0; -- cgit v1.2.3-60-g2f50