From ccfd0549ce64e84e41069ec8e040ce9806b963f2 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 28 Mar 2016 13:11:40 +0200 Subject: Refactored the chat message packet processing functions - Split the processing of public chat messages and whisper messages in two functions, to make them more straightforward. Signed-off-by: Haru --- src/map/clif.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/clif.h') diff --git a/src/map/clif.h b/src/map/clif.h index f930e4ca1..6d6c368f2 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -856,7 +856,8 @@ struct clif_interface { void (*messageln) (const int fd, const char* mes); /* message+s(printf) */ void (*messages) (const int fd, const char *mes, ...) __attribute__((format(printf, 2, 3))); - bool (*process_message) (struct map_session_data *sd, int format, const char **name_, size_t *namelen_, const char **message_, size_t *messagelen_); + const char *(*process_chat_message) (struct map_session_data *sd, const struct packet_chat_message *packet, char *out_buf, int out_buflen); + bool (*process_whisper_message) (struct map_session_data *sd, const struct packet_whisper_message *packet, char *out_name, char *out_message, int out_messagelen); void (*wisexin) (struct map_session_data *sd,int type,int flag); void (*wisall) (struct map_session_data *sd,int type,int flag); void (*PMIgnoreList) (struct map_session_data* sd); -- cgit v1.2.3-70-g09d2