Browse Source

fixes #713

tags/v0.3.0
Big Bad Waffle 5 years ago
parent
commit
3d4ff36ebf
4 changed files with 20 additions and 2 deletions
  1. +1
    -0
      src/server/components/auth.js
  2. +14
    -2
      src/server/components/extensions/socialCommands.js
  3. +4
    -0
      src/server/fixes/fixes.js
  4. +1
    -0
      src/todo

+ 1
- 0
src/server/components/auth.js View File

@@ -175,6 +175,7 @@ module.exports = {
});

let social = character.components.find(c => (c.type === 'social'));
fixes.fixCustomChannels(this.customChannels);
if (social)
social.customChannels = this.customChannels;
},


+ 14
- 2
src/server/components/extensions/socialCommands.js View File

@@ -96,10 +96,22 @@ module.exports = {
.trim()
.split(' ').join('');

let obj = this.obj;

if (value.length === 0)
return;

let obj = this.obj;
else if (value.length > 15) {
obj.socket.emit('events', {
onGetMessages: [{
messages: [{
class: 'color-redA',
message: 'Channel names can not be longer than 15 characters.',
type: 'info'
}]
}]
});
return;
}

let channels = obj.auth.customChannels;
if (!channels.some(c => (c === value)))


+ 4
- 0
src/server/fixes/fixes.js View File

@@ -14,6 +14,10 @@ module.exports = {
this.fixItems(inv.items);
},

fixCustomChannels: function (customChannels) {
customChannels = customChannels.filter(c => c.length <= 15);
},

fixStash: function (stash) {
this.fixItems(stash);
},


+ 1
- 0
src/todo View File

@@ -2,3 +2,4 @@
* Scarlet snake takes long to charge (have to be very close), maybe he didnd't aggro? Should cascade though
* No poison cloud on death for viridian snakes
* Client side debuff icons aren't being removed
* Sending messages in custom channels doesn't work

Loading…
Cancel
Save