diff options
author | shennetsind <ind@henn.et> | 2013-11-16 16:30:11 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-11-16 16:30:11 -0200 |
commit | aee2f6317e1c927847993801b5973d7e2e27a418 (patch) | |
tree | f39d86f489a9f922857718fa4ada68563eaf2503 /src/login/login.c | |
parent | 45ef2298022fcc50e2609c5f9363fd56d4dd3079 (diff) | |
download | hercules-aee2f6317e1c927847993801b5973d7e2e27a418.tar.gz hercules-aee2f6317e1c927847993801b5973d7e2e27a418.tar.bz2 hercules-aee2f6317e1c927847993801b5973d7e2e27a418.tar.xz hercules-aee2f6317e1c927847993801b5973d7e2e27a418.zip |
Introducing Character Ban Support.
@charban/@charunban, can temporarily block any accounts as opposed to the usual account-wide block.
Special Thanks to Haruna, Yommy!
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/login/login.c')
-rw-r--r-- | src/login/login.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/login/login.c b/src/login/login.c index 3da592ebc..75247845d 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -11,6 +11,7 @@ #include "../common/socket.h" #include "../common/strlib.h" #include "../common/timer.h" +#include "../common/utils.h" #include "../common/HPM.h" #include "account.h" #include "ipban.h" @@ -271,18 +272,6 @@ bool check_password(const char* md5key, int passwdenc, const char* passwd, const } } - -//----------------------------------------------------- -// custom timestamp formatting (from eApp) -//----------------------------------------------------- -const char* timestamp2string(char* str, size_t size, time_t timestamp, const char* format) -{ - size_t len = strftime(str, size, format, localtime(×tamp)); - memset(str + len, '\0', size - len); - return str; -} - - //-------------------------------------------- // Test to know if an IP come from LAN or WAN. //-------------------------------------------- |