summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-22 08:50:36 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-22 08:50:36 +0000
commitb219bc963c87f335cd9c0edd9114982b8e02f4aa (patch)
treee01eaab0b8c477fd9ce0f292bec10864cbc63ab4 /src/login
parent23aa6d218ca1c69f234725f5d78aae1f42e326db (diff)
downloadhercules-b219bc963c87f335cd9c0edd9114982b8e02f4aa.tar.gz
hercules-b219bc963c87f335cd9c0edd9114982b8e02f4aa.tar.bz2
hercules-b219bc963c87f335cd9c0edd9114982b8e02f4aa.tar.xz
hercules-b219bc963c87f335cd9c0edd9114982b8e02f4aa.zip
* [Fixed]:
- Compilation warnings and errors. [Improved]: - Changed and moved IP sync status messages to elaborate more. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7290 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 41d51220a..fe40c67ee 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -1172,7 +1172,7 @@ int mmo_auth(struct mmo_account* account, int fd) {
while((dnsbl_serv=strtok(dnsbl_servs,","))) {
sprintf(ip_dnsbl,"%s.%s",r_ip,dnsbl_serv);
- if(resolve_hostbyname(ip_dnsbl,NULL,NULL)!=NULL) {
+ if(resolve_hostbyname(ip_dnsbl,NULL,NULL)!=0) {
ShowInfo("DNSBL: (%s) Blacklisted. User Kicked.\n",ip);
return 3;
}
@@ -1958,7 +1958,7 @@ int parse_fromchar(int fd) {
case 0x2736: // WAN IP update from char-server
for(i = 0; i < MAX_SERVERS; i++) {
if (server_fd[i] == fd) {
- ShowInfo("IP Sync (Server #%d) successful.\n",i);
+ ShowInfo("IP Sync (Server #%d %d.%d.%d.%d) successful.\n",i,(int)RFIFOB(fd,2),(int)RFIFOB(fd,3),(int)RFIFOB(fd,4),(int)RFIFOB(fd,5));
server[i].ip = RFIFOL(fd,2);
}
}