diff options
author | Haru <haru@dotalux.com> | 2014-01-23 19:12:19 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-06-01 10:11:39 +0200 |
commit | 0a54d25ccfd891814cbdada8589b48c6b9da23fd (patch) | |
tree | f95231f444f91c292410d01ac75537df578c74fa /src/login/loginlog_sql.c | |
parent | 2e5e04c5b6e248cb05df4814dbe0d7eed2fe0293 (diff) | |
download | hercules-0a54d25ccfd891814cbdada8589b48c6b9da23fd.tar.gz hercules-0a54d25ccfd891814cbdada8589b48c6b9da23fd.tar.bz2 hercules-0a54d25ccfd891814cbdada8589b48c6b9da23fd.tar.xz hercules-0a54d25ccfd891814cbdada8589b48c6b9da23fd.zip |
Replaced some of the hardcoded values with constants (login)
- Replaced several hardcoded values with the appropriate enums.
- Added documentation for some hardcoded values that haven't been
replaced by enums (yet)
- Minor code legibility improvements.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/login/loginlog_sql.c')
-rw-r--r-- | src/login/loginlog_sql.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/loginlog_sql.c b/src/login/loginlog_sql.c index 8ed6e395a..2c6f76e38 100644 --- a/src/login/loginlog_sql.c +++ b/src/login/loginlog_sql.c @@ -62,6 +62,7 @@ unsigned long loginlog_failedattempts(uint32 ip, unsigned int minutes) /*============================================= * Records an event in the login log *---------------------------------------------*/ +// TODO: add an enum of rcode values void login_log(uint32 ip, const char* username, int rcode, const char* message) { char esc_username[NAME_LENGTH*2+1]; |