Make command output work in server tabs

This commit is contained in:
Ken-Håvard Lieng 2016-01-25 23:42:11 +01:00
parent 068f3c04a0
commit 6608bc545a
2 changed files with 10 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@ -14,7 +14,7 @@ const Message = Record({
}); });
function addMessage(state, message) { function addMessage(state, message) {
let dest = message.to || message.from; let dest = message.to || message.from || message.server;
if (message.from && message.from.indexOf('.') !== -1) { if (message.from && message.from.indexOf('.') !== -1) {
dest = message.server; dest = message.server;
} }