From ab2b8254e88ea098b34b9127f1571a14ad0e692a Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 25 Aug 2019 17:48:45 +0200 Subject: Remove unused function intif_main_message() Signed-off-by: Haru --- src/map/intif.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/map/intif.c') diff --git a/src/map/intif.c b/src/map/intif.c index cb9dd465f..7a87d3639 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -212,28 +212,6 @@ static int intif_broadcast2(const char *mes, int len, unsigned int fontColor, sh return 0; } -/// send a message using the main chat system -/// the source of message -/// the message that was sent -static int intif_main_message(struct map_session_data *sd, const char *message) -{ - char output[256]; - - nullpo_ret(sd); - nullpo_ret(message); - - // format the message for main broadcasting - snprintf( output, sizeof(output), msg_txt(386), sd->status.name, message ); - - // send the message using the inter-server broadcast service - intif->broadcast2(output, (int)strlen(output) + 1, 0xFE000000, 0, 0, 0, 0); - - // log the chat message - logs->chat( LOG_CHAT_MAINCHAT, 0, sd->status.char_id, sd->status.account_id, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, message ); - - return 0; -} - //Request for saving registry values. static int intif_saveregistry(struct map_session_data *sd) { @@ -2884,7 +2862,6 @@ void intif_defaults(void) intif->create_pet = intif_create_pet; intif->broadcast = intif_broadcast; intif->broadcast2 = intif_broadcast2; - intif->main_message = intif_main_message; intif->saveregistry = intif_saveregistry; intif->request_registry = intif_request_registry; intif->request_account_storage = intif_request_account_storage; -- cgit v1.2.3-60-g2f50