[mw-devel] MW3 r1187 - trunk/webclient
dez at sucs.org
dez at sucs.org
Thu Oct 7 21:45:40 BST 2010
Author: dez
Date: 2010-10-07 21:45:40 +0100 (Thu, 07 Oct 2010)
New Revision: 1187
Modified:
trunk/webclient/say.js
Log:
Corrects username <div> addition to put the </div> inside the if statement
Modified: trunk/webclient/say.js
===================================================================
--- trunk/webclient/say.js 2010-10-07 20:33:09 UTC (rev 1186)
+++ trunk/webclient/say.js 2010-10-07 20:45:40 UTC (rev 1187)
@@ -16,7 +16,7 @@
}
} else {
for (one in msg) {
- if (msg[one].state == 23) return tmo;
+ if (msg[one].state == 23) return tmo; // CheckOnOff
if (msg[one].state == 14) { // IPC_KICK
var what;
what = "<div class='msgkick user_system'>";
@@ -43,8 +43,10 @@
escapedMsg = escapedMsg.replace(/>/g, ">");
/* Detect username */
- if (escapedMsg.substr(0, msg[one].username.length)==msg[one].username) { escapedMsg = escapedMsg.replace(msg[one].username, "<div class='msg_poster'>"+msg[one].username+"</div><div class='msg_content'>"); }
- escapedMsg = escapedMsg+"</div>";
+ if (escapedMsg.substr(0, msg[one].username.length)==msg[one].username) {
+ escapedMsg = escapedMsg.replace(msg[one].username, "<div class='msg_poster'>"+msg[one].username+"</div><div class='msg_content'>");
+ escapedMsg = escapedMsg+"</div>";
+ }
/* Detect URIs and convert to links */
More information about the mw-devel
mailing list