diff options
author | Haru <haru@dotalux.com> | 2019-08-25 17:44:10 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2019-08-26 00:28:35 +0200 |
commit | 0ca24c219b8a5a7cd4beb15d8384380f7e6fa9b5 (patch) | |
tree | e783569a6e8c96827798d552181775ded9850171 /src/map/clif.c | |
parent | 247ec940d2efdcddbb3cf5d014ccdca42e1d2f0c (diff) | |
download | hercules-0ca24c219b8a5a7cd4beb15d8384380f7e6fa9b5.tar.gz hercules-0ca24c219b8a5a7cd4beb15d8384380f7e6fa9b5.tar.bz2 hercules-0ca24c219b8a5a7cd4beb15d8384380f7e6fa9b5.tar.xz hercules-0ca24c219b8a5a7cd4beb15d8384380f7e6fa9b5.zip |
Remove round-trip to the inter-server for the whisper-to-gm messages
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 62c621324..976ba6530 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11087,13 +11087,13 @@ static void clif_parse_GetCharNameRequest(int fd, struct map_session_data *sd) sc = status->get_sc(bl); if (sc && sc->option&OPTION_INVISIBLE && !clif->isdisguised(bl) && bl->type != BL_NPC && //Skip hidden NPCs which can be seen using Maya Purple - pc_get_group_level(sd) < battle_config.hack_info_GM_level + !pc_has_permission(sd, PC_PERM_RECEIVE_HACK_INFO) ) { char gm_msg[256]; sprintf(gm_msg, "Hack on NameRequest: character '%s' (account: %d) requested the name of an invisible target (id: %d).\n", sd->status.name, sd->status.account_id, id); ShowWarning(gm_msg); // information is sent to all online GMs - intif->wis_message_to_gm(map->wisp_server_name, battle_config.hack_info_GM_level, gm_msg); + pc->wis_message_to_gm(map->wisp_server_name, PC_PERM_RECEIVE_HACK_INFO, gm_msg); return; } #endif // 0 |