fixed some compiler errors

This commit is contained in:
WolverinDEV 2019-01-27 13:22:23 +01:00
parent 9234b95d5b
commit 6830058c2c
2 changed files with 4 additions and 5 deletions

View file

@ -1189,17 +1189,17 @@ class ConnectionCommandHandler {
return;
}
if(invoker == this.connection._client.getClient()) {
sound.play(Sound.MESSAGE_SEND, { background_notification: true });
sound.play(Sound.MESSAGE_SEND);
target.chat(true).appendMessage("{0}: {1}", true, this.connection._client.getClient().createChatTag(true), MessageHelper.bbcode_chat(json["msg"]));
} else {
sound.play(Sound.MESSAGE_RECEIVED, { background_notification: true });
sound.play(Sound.MESSAGE_RECEIVED);
invoker.chat(true).appendMessage("{0}: {1}", true, ClientEntry.chatTag(json["invokerid"], json["invokername"], json["invokeruid"], true), MessageHelper.bbcode_chat(json["msg"]));
}
} else if(mode == 2) {
if(json["invokerid"] == this.connection._client.clientId)
sound.play(Sound.MESSAGE_SEND, { background_notification: true });
sound.play(Sound.MESSAGE_SEND);
else
sound.play(Sound.MESSAGE_RECEIVED, { background_notification: true });
sound.play(Sound.MESSAGE_RECEIVED);
chat.channelChat().appendMessage("{0}: {1}", true, ClientEntry.chatTag(json["invokerid"], json["invokername"], json["invokeruid"], true), MessageHelper.bbcode_chat(json["msg"]))
} else if(mode == 3) {
chat.serverChat().appendMessage("{0}: {1}", true, ClientEntry.chatTag(json["invokerid"], json["invokername"], json["invokeruid"], true), MessageHelper.bbcode_chat(json["msg"]));

View file

@ -319,7 +319,6 @@ namespace sound {
console.log(tr("Replaying %s"), path);
if(file.node) {
file.node.currentTime = 0;
file.node.
file.node.play();
} else {
if(!warned) {