summaryrefslogtreecommitdiff
path: root/src/login/loginlog_txt.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-19 15:48:57 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-19 15:48:57 +0000
commit73c06082f78f6ba79e40bf66c531d5ff99082fee (patch)
treeadf94e026ce531dc63c690ac3f16fff1dc30ed6d /src/login/loginlog_txt.c
parentdb6e4aaaeea4e7053e17576db730def8b3cd4fd9 (diff)
downloadhercules-73c06082f78f6ba79e40bf66c531d5ff99082fee.tar.gz
hercules-73c06082f78f6ba79e40bf66c531d5ff99082fee.tar.bz2
hercules-73c06082f78f6ba79e40bf66c531d5ff99082fee.tar.xz
hercules-73c06082f78f6ba79e40bf66c531d5ff99082fee.zip
* Added global sql settings 'sql.*' to inter_athena.conf.
* Made account, ipban and loginlog use the global sql settings when the hostname is empty. * Commented 'ipban.sql.*' and 'account.sql.*' so they default to the global settings. * Removed deprecated settings 'case_sensitive' and 'add_to_unlimited_account' from in login_athena.conf. * Made inter_athena.conf be imported from login_athena.conf instead of being handled separate. * Changed ipban to get the failed login attempts of an ip from loginlog (respects if loginlog is enabled or not). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13092 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login/loginlog_txt.c')
-rw-r--r--src/login/loginlog_txt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/login/loginlog_txt.c b/src/login/loginlog_txt.c
index d40142110..724156ddc 100644
--- a/src/login/loginlog_txt.c
+++ b/src/login/loginlog_txt.c
@@ -18,6 +18,13 @@
char login_log_filename[1024] = "log/login.log";
+// Returns the number of failed login attemps by the ip in the last minutes.
+unsigned long loginlog_failedattempts(uint32 ip, unsigned int minutes)
+{
+ // XXX not implemented
+ return 0;
+}
+
/*=============================================
* Records an event in the login log