Fixed bug with sesh starting
This commit is contained in:
parent
6f89f36fb8
commit
e1cdca2b96
2 changed files with 24 additions and 6 deletions
|
|
@ -92,6 +92,18 @@ class pmHandler{
|
|||
return false;
|
||||
}
|
||||
|
||||
//If this is a sesh starter
|
||||
if(data.msg == '' || data.msg == null){
|
||||
//Skip pre-processing and send a cooked message
|
||||
return this.relayPMObj(new message(
|
||||
socket.user.user,
|
||||
recipients,
|
||||
'',
|
||||
'chat',
|
||||
[]
|
||||
));
|
||||
}
|
||||
|
||||
//preprocess message
|
||||
const preprocessedMessage = await this.chatPreprocessor.preprocess(socket, data);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue