summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias <matiassw@gmail.com>2013-06-25 02:30:05 -0400
committerMatias <matiassw@gmail.com>2013-06-25 02:30:05 -0400
commitdc5c72590f286125f1f1aad8321a80127b0ed9d8 (patch)
tree1f3a0c287377f1d04e7fdab12457d2af8be24bc9
parent5ed710e084608dbd9aaf3a9af1b12719a938ac43 (diff)
downloadhercules-dc5c72590f286125f1f1aad8321a80127b0ed9d8.tar.gz
hercules-dc5c72590f286125f1f1aad8321a80127b0ed9d8.tar.bz2
hercules-dc5c72590f286125f1f1aad8321a80127b0ed9d8.tar.xz
hercules-dc5c72590f286125f1f1aad8321a80127b0ed9d8.zip
- Fixes Chatrooms disappearing when using @disguise after creating a chatroom.
-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 55ce993b4..5efb49d68 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -17,6 +17,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_*()
@@ -1666,6 +1667,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;
}