summaryrefslogtreecommitdiff
path: root/src/map/clif.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-03-28 13:11:40 +0200
committerHaru <haru@dotalux.com>2016-04-23 09:52:30 +0200
commitccfd0549ce64e84e41069ec8e040ce9806b963f2 (patch)
tree73fbb4a27b02e1807cd71678ace972921b5dca81 /src/map/clif.h
parent235a8d18f8cbbb5aaf7563566ff68f15fc1054c1 (diff)
downloadhercules-ccfd0549ce64e84e41069ec8e040ce9806b963f2.tar.gz
hercules-ccfd0549ce64e84e41069ec8e040ce9806b963f2.tar.bz2
hercules-ccfd0549ce64e84e41069ec8e040ce9806b963f2.tar.xz
hercules-ccfd0549ce64e84e41069ec8e040ce9806b963f2.zip
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 <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.h')
-rw-r--r--src/map/clif.h3
1 files changed, 2 insertions, 1 deletions
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);