[mw-devel] MW3 r1328 - trunk/src/webclient

arthur at sucs.org arthur at sucs.org
Sun Feb 3 13:14:45 GMT 2013


Author: arthur
Date: 2013-02-03 13:14:45 +0000 (Sun, 03 Feb 2013)
New Revision: 1328

Modified:
   trunk/src/webclient/comms.c
Log:
new format messages are already json, dont need to json_escape them


Modified: trunk/src/webclient/comms.c
===================================================================
--- trunk/src/webclient/comms.c	2013-02-02 16:40:44 UTC (rev 1327)
+++ trunk/src/webclient/comms.c	2013-02-03 13:14:45 UTC (rev 1328)
@@ -144,7 +144,11 @@
 	msg->state = state;
 	msg->pid = mesg_pid;
 	msg->user = *mesg_user;
-	msg->text = json_escape(newbuff);
+	/* new format messages are already json */
+	if (state >= 32)
+		msg->text = newbuff;
+	else
+		msg->text = json_escape(newbuff);
 
 	list_add_tail(&msg->list, &msglist);
 




More information about the mw-devel mailing list