summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/map.c b/src/map/map.c
index f47d705c1..ee597789c 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1426,9 +1426,10 @@ int map_quit(struct map_session_data *sd) {
if (sd->state.event_disconnect) {
struct npc_data *npc;
- if ((npc = npc_name2id("PCLogoutEvent"))) {
+ if ((npc = npc_name2id(script_config.logout_event_name))) {
run_script(npc->u.scr.script,0,sd->bl.id,npc->bl.id); // PCLogoutNPC
- ShowStatus("Event '"CL_WHITE"PCLogoutEvent"CL_RESET"' executed.\n");
+ sprintf (tmp_output, "Event '"CL_WHITE"%s"CL_RESET"' executed.\n", script_config.logout_event_name);
+ ShowStatus(tmp_output);
}
}