summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorMatias <matiassw@gmail.com>2013-06-25 17:59:09 -0400
committerMatias <matiassw@gmail.com>2013-06-25 17:59:09 -0400
commitda905aa66028e4bdf66ce54cf3649bb213099728 (patch)
tree23421c4b5571e8de6bacdc31246e91e75d71b981 /src/map/pc.c
parentb40371d3a0772031d12f2782c10976413c6f34b9 (diff)
downloadhercules-da905aa66028e4bdf66ce54cf3649bb213099728.tar.gz
hercules-da905aa66028e4bdf66ce54cf3649bb213099728.tar.bz2
hercules-da905aa66028e4bdf66ce54cf3649bb213099728.tar.xz
hercules-da905aa66028e4bdf66ce54cf3649bb213099728.zip
- Fixing an isue with Disguise that'd make chatrooms disappear when @disguise'ing after creating a chat
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 0d1a99175..7a423e3fe 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -18,6 +18,7 @@
#include "atcommand.h" // get_atcommand_level()
#include "battle.h" // battle_config
#include "battleground.h"
+#include "chat.h"
#include "chrif.h"
#include "clif.h"
#include "date.h" // is_day_of_*()
@@ -1692,6 +1693,13 @@ int pc_disguise(struct map_session_data *sd, int class_) {
clif->cartlist(sd);
clif->updatestatus(sd,SP_CARTINFO);
}
+ if (sd->chatID) {
+ struct chat_data* cd;
+ nullpo_retr(1, sd);
+ cd = (struct chat_data*)map_id2bl(sd->chatID);
+ if( cd != NULL || (struct block_list*)sd == cd->owner )
+ clif->dispchat(cd,0);
+ }
}
return 1;
}