summaryrefslogtreecommitdiff
path: root/src/login/ipban_sql.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-09-22 09:56:48 +0200
committerHaru <haru@dotalux.com>2013-09-22 09:56:48 +0200
commit469102135fd5429a4225afe378bed3e82dc81d31 (patch)
tree281e2f661c9affe3870669b4faceb173c96e674f /src/login/ipban_sql.c
parentbeaf3a26a60d5b0429a577b7d58232957d4483e7 (diff)
downloadhercules-469102135fd5429a4225afe378bed3e82dc81d31.tar.gz
hercules-469102135fd5429a4225afe378bed3e82dc81d31.tar.bz2
hercules-469102135fd5429a4225afe378bed3e82dc81d31.tar.xz
hercules-469102135fd5429a4225afe378bed3e82dc81d31.zip
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 <haru@dotalux.com>
Diffstat (limited to 'src/login/ipban_sql.c')
-rw-r--r--src/login/ipban_sql.c2
1 files changed, 1 insertions, 1 deletions
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;