summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authormc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-14 00:33:01 +0000
committermc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-14 00:33:01 +0000
commit4aee20b0e1fdfb23d9336cea77a0985e463ea081 (patch)
tree0cca8570cea1e328d527952640287db50de5d6f6 /src/map/clif.c
parentc9e34e95d3d79d28927300684aaab6940fd03c9e (diff)
downloadhercules-4aee20b0e1fdfb23d9336cea77a0985e463ea081.tar.gz
hercules-4aee20b0e1fdfb23d9336cea77a0985e463ea081.tar.bz2
hercules-4aee20b0e1fdfb23d9336cea77a0985e463ea081.tar.xz
hercules-4aee20b0e1fdfb23d9336cea77a0985e463ea081.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@566 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 7e4605807..1f7130676 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -24,6 +24,7 @@
#include "../common/malloc.h"
#include "../common/version.h"
#include "../common/nullpo.h"
+#include "../common/showmsg.h"
#include "map.h"
#include "chrif.h"
@@ -10107,15 +10108,16 @@ static int clif_parse(int fd) {
if (chrif_isconnect())
clif_quitsave(fd, sd);
if (sd->status.name != NULL)
- printf("Player [%s] has logged off your server.\n", sd->status.name); // Player logout display [Valaris]
+ sprintf(tmp_output,"%sCharacter '"CL_WHITE"%s"CL_RESET"' logged off.\n", (pc_isGM(sd))?"GM ":"",sd->status.name); // Player logout display [Valaris]
else
- printf("Player with account [%d] has logged off your server.\n", sd->bl.id); // Player logout display [Yor]
+ sprintf(tmp_output,"%sCharacter with Account ID '"CL_WHITE"%d"CL_RESET"' logged off.\n", (pc_isGM(sd))?"GM ":"", sd->bl.id); // Player logout display [Yor]
} else if (sd) { // not authentified! (refused by char-server or disconnect before to be authentified)
- printf("Player with account [%d] has logged off your server (not auth account).\n", sd->bl.id); // Player logout display [Yor]
+ sprintf(tmp_output,"Player not authenticated with Account ID '"CL_WHITE"%d"CL_RESET"' logged off.\n", sd->bl.id); // Player logout display [Yor]
if (chrif_isconnect())
clif_quitsave(fd, sd);
sd = 0;
}
+ ShowInfo(tmp_output);
close(fd);
if (sd) // ’ljÁ
map_deliddb(&sd->bl); // ’ljÁ