diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-04 06:06:28 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-04 06:06:28 +0000 |
commit | b7a4f899702a4ad28d6726de9326912d950917a6 (patch) | |
tree | 6d1f45486a8735dcbdf9182b33b6dac7112d8335 /src/login | |
parent | 9e340c8961d0168c12e4eca5af93025357d00f9e (diff) | |
download | hercules-b7a4f899702a4ad28d6726de9326912d950917a6.tar.gz hercules-b7a4f899702a4ad28d6726de9326912d950917a6.tar.bz2 hercules-b7a4f899702a4ad28d6726de9326912d950917a6.tar.xz hercules-b7a4f899702a4ad28d6726de9326912d950917a6.zip |
- Fixed a bug on the last fix :P
- Removed some of those annoying login-SQL on-log messages that are totally useless.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5459 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/login.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/login.c b/src/login/login.c index cb7f1980c..538df26ab 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -2981,7 +2981,7 @@ int parse_admin(int fd) { // Test to know if an IP come from LAN or WAN.
// Rewrote: Adnvanced subnet check [LuzZza]
//--------------------------------------------
-int lan_subnetcheck(unsigned char *p) {
+int lan_subnetcheck(long *p) {
int i;
unsigned char *sbn, *msk, *src = (unsigned char *)p;
@@ -3105,11 +3105,11 @@ int parse_login(int fd) { else
ShowInfo("Connection of the account '%s' accepted.\n", account.userid);
server_num = 0;
- WFIFOHEAD(fd, 47+32*MAX_SERVERS);
+ WFIFOHEAD(fd, 47+32*MAX_SERVERS);
for(i = 0; i < MAX_SERVERS; i++) {
if (server_fd[i] >= 0) {
// Andvanced subnet check [LuzZza]
- if((subnet_char_ip = lan_subnetcheck(p)))
+ if((subnet_char_ip = lan_subnetcheck((long*)p)))
WFIFOL(fd,47+server_num*32) = subnet_char_ip;
else
WFIFOL(fd,47+server_num*32) = server[i].ip;
|