Browse Source

fixes #396

tags/v0.1.8^2
Big Bad Waffle 6 years ago
parent
commit
00ef709e70
2 changed files with 5 additions and 4 deletions
  1. +3
    -2
      src/client/js/components/social.js
  2. +2
    -2
      src/server/components/social.js

+ 3
- 2
src/client/js/components/social.js View File

@@ -9,7 +9,8 @@ define([
customChannels: null,

init: function() {
events.emit('onGetCustomChatChannels', this.customChannels);
if (this.customChannels)
events.emit('onGetCustomChatChannels', this.customChannels);
}
};
});
});

+ 2
- 2
src/server/components/social.js View File

@@ -18,11 +18,11 @@ define([
this.obj.extendComponent('social', 'socialCommands', {});
},

simplify: function () {
simplify: function (self) {
return {
type: 'social',
party: this.party,
customChannels: this.customChannels
customChannels: self ? this.customChannels : null
};
},



Loading…
Cancel
Save