summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <notind@gmail.com>2013-06-27 10:32:21 -0700
committershennetsind <notind@gmail.com>2013-06-27 10:32:21 -0700
commite5b1d3bdff66c9475755651a94d20057fc4d02dd (patch)
tree0b3c54a4d824c533ed4a4aad421f1bd4f9d66634
parent41f3f0b6ce99a0c69f7ccf8f08dd29e3b45b8e76 (diff)
parentda905aa66028e4bdf66ce54cf3649bb213099728 (diff)
downloadhercules-e5b1d3bdff66c9475755651a94d20057fc4d02dd.tar.gz
hercules-e5b1d3bdff66c9475755651a94d20057fc4d02dd.tar.bz2
hercules-e5b1d3bdff66c9475755651a94d20057fc4d02dd.tar.xz
hercules-e5b1d3bdff66c9475755651a94d20057fc4d02dd.zip
Merge pull request #52 from MatiasSW/chatdisguise
Chatroom deleting after @disguise
-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 e4b9803c7..10c7642c5 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;
}