Strip last character from ACTION messages

This commit is contained in:
Ken-Håvard Lieng 2017-03-30 05:13:50 +02:00
parent 007dd3fe63
commit 52f929ec45
2 changed files with 20 additions and 20 deletions

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@ function addMessage(state, message) {
const from = message.from;
message.from = null;
message.type = 'action';
message.message = from + message.message.slice(7);
message.message = from + message.message.slice(7, -1);
}
return state.updateIn([message.server, message.dest], List(),