summaryrefslogtreecommitdiff
path: root/src/char/mapif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-08-25 17:44:10 +0200
committerHaru <haru@dotalux.com>2019-08-26 00:28:35 +0200
commit0ca24c219b8a5a7cd4beb15d8384380f7e6fa9b5 (patch)
treee783569a6e8c96827798d552181775ded9850171 /src/char/mapif.c
parent247ec940d2efdcddbb3cf5d014ccdca42e1d2f0c (diff)
downloadhercules-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/char/mapif.c')
-rw-r--r--src/char/mapif.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c
index 89cd358ec..7e29727c7 100644
--- a/src/char/mapif.c
+++ b/src/char/mapif.c
@@ -2093,18 +2093,6 @@ static int mapif_parse_broadcast(int fd)
return 0;
}
-// Received wisp message from map-server for ALL gm (just copy the message and resends it to ALL map-servers)
-static int mapif_parse_WisToGM(int fd)
-{
- unsigned char buf[2048]; // 0x3003/0x3803 <packet_len>.w <wispname>.24B <min_gm_level>.w <message>.?B
-
- memcpy(WBUFP(buf,0), RFIFOP(fd,0), RFIFOW(fd,2)); // Message contains the NUL terminator (see intif_wis_message_to_gm())
- WBUFW(buf, 0) = 0x3803;
- mapif->sendall(buf, RFIFOW(fd,2));
-
- return 0;
-}
-
// Save account_reg into sql (type=2)
static int mapif_parse_Registry(int fd)
{
@@ -2544,7 +2532,6 @@ void mapif_defaults(void)
mapif->account_reg_reply = mapif_account_reg_reply;
mapif->disconnectplayer = mapif_disconnectplayer;
mapif->parse_broadcast = mapif_parse_broadcast;
- mapif->parse_WisToGM = mapif_parse_WisToGM;
mapif->parse_Registry = mapif_parse_Registry;
mapif->parse_RegistryRequest = mapif_parse_RegistryRequest;
mapif->namechange_ack = mapif_namechange_ack;