From 21d38a6bfc3bcfa8c115df26847b7c2b4d986565 Mon Sep 17 00:00:00 2001 From: remoitnane Date: Sun, 3 Oct 2010 03:17:37 -0700 Subject: Do not allow empty/whitespace-only party/guild names Also makes minor style adjustments and cleans up comments. --- src/map/clif.c | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 205c222..3cd01ee 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5209,7 +5209,14 @@ int clif_cart_equiplist (struct map_session_data *sd) } /*========================================== - * �p�[�e�B�쐬���� + * Relay the result of party creation. + * + * (R 00fa .B) + * + * flag: + * 0 The party was created. + * 1 The party name is invalid/taken. + * 2 The character is already in a party. *------------------------------------------ */ int clif_party_created (struct map_session_data *sd, int flag) @@ -5269,7 +5276,7 @@ int clif_party_info (struct party *p, int fd) /*========================================== * Relay a party invitation. * - * (S 00fe .l .24B) + * (R 00fe .l .24B) *------------------------------------------ */ int clif_party_invite (struct map_session_data *sd, @@ -5738,7 +5745,15 @@ int clif_mvp_exp (struct map_session_data *sd, int exp) } /*========================================== - * �M���h�쐬�”ےʒm + * Relay the result of guild creation. + * + * (R 0167 .B) + * + * flag: + * 0 The guild was created. + * 1 The character is already in a guild. + * 2 The guild name is invalid/taken. + * 3 The Emperium item is required. *------------------------------------------ */ int clif_guild_created (struct map_session_data *sd, int flag) @@ -8423,7 +8438,9 @@ void clif_parse_CloseKafra (int fd, struct map_session_data *sd) } /*========================================== - * �p�[�e�B������ + * Process request to create a party. + * + * (S 00f9 .24B) *------------------------------------------ */ void clif_parse_CreateParty (int fd, struct map_session_data *sd) @@ -8438,7 +8455,14 @@ void clif_parse_CreateParty (int fd, struct map_session_data *sd) } /*========================================== - * �p�[�e�B������ + * Process request to create a party. + * + * (S 01e8 .24B .B .B) + * + * Note: Upstream eAthena uses this to + * specify experience/item sharing, + * respectively, but it was left + * incomplete here. *------------------------------------------ */ void clif_parse_CreateParty2 (int fd, struct map_session_data *sd) @@ -8590,7 +8614,11 @@ void clif_parse_GM_Monster_Item (int fd, struct map_session_data *sd) } /*========================================== - * �M���h������ + * Process request to create a guild. + * + * (S 0165 .l .24B) + * + * Note: The account ID seems to be ignored. *------------------------------------------ */ void clif_parse_CreateGuild (int fd, struct map_session_data *sd) -- cgit v1.2.3-70-g09d2