diff options
author | Dennis Friis <peavey@inspircd.org> | 2009-06-24 23:44:17 +0200 |
---|---|---|
committer | Dennis Friis <peavey@inspircd.org> | 2009-06-25 01:13:21 +0200 |
commit | 2ce3f7eeab3222e8819810ac245ae43dee114e89 (patch) | |
tree | 04bd9d6816274e2b2b36d1ed9431ace1915656e0 /src | |
parent | 441ea645326ddd951dbeaeb11b4043dd2506dd59 (diff) | |
download | tmwa-2ce3f7eeab3222e8819810ac245ae43dee114e89.tar.gz tmwa-2ce3f7eeab3222e8819810ac245ae43dee114e89.tar.bz2 tmwa-2ce3f7eeab3222e8819810ac245ae43dee114e89.tar.xz tmwa-2ce3f7eeab3222e8819810ac245ae43dee114e89.zip |
Auto-cloe guild storage when member leaves. From ea stable.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/guild.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c index 2643280..9e65c33 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -664,6 +664,8 @@ int guild_member_leaved(int guild_id,int account_id,int char_id,int flag, } } if(sd!=NULL && sd->status.guild_id==guild_id){ + if (sd->state.storage_flag == 2) //Close the guild storage. + storage_guild_storageclose(sd); sd->status.guild_id=0; sd->guild_emblem_id=0; sd->guild_sended=0; |