summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authormc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-27 17:24:18 +0000
committermc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-27 17:24:18 +0000
commit9ea02a170cc28c6369ab7eeae09c140fbb3d5954 (patch)
tree7648d77247442e37126da7f520b2c84e8ea4c8d8 /src/map/map.c
parentff5e9eebcc2b116f37bb6f909f3f60f902bb462d (diff)
downloadhercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.tar.gz
hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.tar.bz2
hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.tar.xz
hercules-9ea02a170cc28c6369ab7eeae09c140fbb3d5954.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@381 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 102354823..254883e93 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -37,6 +37,7 @@
#include "nullpo.h"
#include "socket.h"
#include "log.h"
+#include "showmsg.h"
#ifdef MEMWATCH
#include "memwatch.h"
@@ -1816,7 +1817,8 @@ int map_config_read(char *cfgName) {
char_ip_set_ = 1;
h = gethostbyname (w2);
if(h != NULL) {
- printf("Character server IP address : %s -> %d.%d.%d.%d\n", w2, (unsigned char)h->h_addr[0], (unsigned char)h->h_addr[1], (unsigned char)h->h_addr[2], (unsigned char)h->h_addr[3]);
+ snprintf(tmp_output,sizeof(tmp_output),"Character server IP address : %s -> %d.%d.%d.%d\n", w2, (unsigned char)h->h_addr[0], (unsigned char)h->h_addr[1], (unsigned char)h->h_addr[2], (unsigned char)h->h_addr[3]);
+ ShowInfo(tmp_output);
sprintf(w2,"%d.%d.%d.%d", (unsigned char)h->h_addr[0], (unsigned char)h->h_addr[1], (unsigned char)h->h_addr[2], (unsigned char)h->h_addr[3]);
}
chrif_setip(w2);