Browse Source

bug #1890: chat files will no longer replace existing chats in zonefiles

tags/v0.10.6^2
Shaun 2 years ago
parent
commit
95c1ab57db
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      src/server/world/map.js

+ 7
- 2
src/server/world/map.js View File

@@ -85,8 +85,13 @@ module.exports = {
try {
chats = require('../' + this.path + '/' + this.name + '/chats');
} catch (e) {}
if (chats)
this.zone.chats = chats;

if (chats) {
if (this.zone.chats)
extend(this.zone.chats, chats);
else
this.zone.chats = chats;
}

let dialogues = null;
try {


Loading…
Cancel
Save