From b558c22a6a21f943c3ee75243d84b00ecae6cbe7 Mon Sep 17 00:00:00 2001 From: epoque11 Date: Thu, 29 Mar 2012 18:43:58 +0000 Subject: - Merged main-chat message handling (as requested/enforced by trojal <3) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15816 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 9dece4e7c..bd5f4721d 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9827,14 +9827,10 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd) if(!sd->state.mainchat) clif_displaymessage(fd, msg_txt(388)); // You should enable main chat with "@main on" command. else { - char output[256]; - snprintf(output, ARRAYLENGTH(output), msg_txt(386), sd->status.name, message); - intif_broadcast2(output, strlen(output) + 1, 0xFE000000, 0, 0, 0, 0); + // send the main message using inter-server system + intif_main_message( sd, message ); } - // Chat logging type 'M' / Main Chat - log_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; } -- cgit v1.2.3-60-g2f50