Browse Source

Merge branch 'bug-party-chat-crash' into 'staging'

Fixes #12

See merge request !9
tags/v0.1.2
Big Bad Waffle 7 years ago
parent
commit
5a53a9443e
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      src/server/components/social.js

+ 14
- 0
src/server/components/social.js View File

@@ -33,6 +33,20 @@ define([
},

sendPartyMessage: function(msg) {
if (!this.party) {
this.obj.socket.emit('events', {
onGetMessages: [{
messages: [{
class: 'q0',
message: 'you are not in a party',
type: 'info'
}]
}]
});

return;
}

var charname = this.obj.auth.charname;
var message = msg.data.message.substr(1);



Loading…
Cancel
Save