[mw-devel] MW3 r1373 - trunk/webclient
eclipse at sucs.org
eclipse at sucs.org
Thu Oct 23 18:55:37 BST 2014
Author: eclipse
Date: 2014-10-23 18:55:37 +0100 (Thu, 23 Oct 2014)
New Revision: 1373
Modified:
trunk/webclient/say.js
Log:
fixed board messages, saytos and whispers on webmw
Modified: trunk/webclient/say.js
===================================================================
--- trunk/webclient/say.js 2014-10-04 21:07:56 UTC (rev 1372)
+++ trunk/webclient/say.js 2014-10-23 17:55:37 UTC (rev 1373)
@@ -26,6 +26,7 @@
for (one in msg) {
switch (msg[one].state) {
case "SAYR":
+ case "SAYU":
// decode the json message
var detail = JSON.parse(msg[one].text);
@@ -60,6 +61,12 @@
case "notsayto":
body = msg[one].username + " says (-" + detail.exclude + "): " + detail.text;
break;
+ case "says":
+ body = msg[one].username + " says: " + detail.text;
+ break;
+ case "whispers":
+ body = msg[one].username + " whispers: " + detail.text;
+ break;
default:
body = msg[one].username + " " + detail.text;
break;
@@ -113,6 +120,7 @@
break;
case 11: // Talker message
+ case 17: // Board Message
/* Escape HTML characters */
var escapedMsg = msg[one].text.replace(/&/g, "&");
escapedMsg = escapedMsg.replace(/</g, "<");
More information about the mw-devel
mailing list