summaryrefslogtreecommitdiff
path: root/src/map/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/chat.c')
-rw-r--r--src/map/chat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/chat.c b/src/map/chat.c
index 40050073d..9cc06a4ec 100644
--- a/src/map/chat.c
+++ b/src/map/chat.c
@@ -257,6 +257,8 @@ int chat_kickchat(struct map_session_data *sd,char *kickusername)
cd = (struct chat_data *)map_id2bl(sd->chatID);
+ if (!cd) return -1;
+
for(i = 0; i < cd->users; i++) {
if (strcmp(cd->usersd[i]->status.name, kickusername) == 0) {
if (battle_config.gm_kick_chat && pc_isGM(cd->usersd[i]) >= battle_config.gm_kick_chat)