summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-08 15:54:52 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-08 15:54:52 +0000
commit7410adee2a636b1fab6adcd5a581048146d2a9a5 (patch)
tree07b55588a54f6e684ff187fbf2e9641ba032d9ca /src/map/party.c
parent87ac3c6f8367ba972124231ff1306ed890abc6b8 (diff)
downloadhercules-7410adee2a636b1fab6adcd5a581048146d2a9a5.tar.gz
hercules-7410adee2a636b1fab6adcd5a581048146d2a9a5.tar.bz2
hercules-7410adee2a636b1fab6adcd5a581048146d2a9a5.tar.xz
hercules-7410adee2a636b1fab6adcd5a581048146d2a9a5.zip
Small party/guild creation cleanup. Added packet comments. Removed fake reply packet usage.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12538 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/party.c b/src/map/party.c
index a008d07eb..22bac7467 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -110,16 +110,16 @@ int party_create(struct map_session_data *sd,char *name,int item,int item2)
{
struct party_member leader;
char tname[NAME_LENGTH];
- safestrncpy(tname, name, NAME_LENGTH);
- if(sd->status.party_id) {
- clif_party_created(sd,2);
- return 0; // "already in a party"
+ safestrncpy(tname, name, NAME_LENGTH);
+ if( strlen(trim(tname)) == 0 )
+ {// empty name
+ return 0;
}
- if(strlen(trim(tname)) == 0)
- {
- clif_party_created(sd, 1);
+ if( sd->status.party_id )
+ {// already in a party
+ clif_party_created(sd,2);
return 0;
}