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

dez at sucs.org dez at sucs.org
Sat Oct 9 21:10:10 BST 2010


Author: dez
Date: 2010-10-09 21:10:10 +0100 (Sat, 09 Oct 2010)
New Revision: 1207

Modified:
   trunk/src/webclient/comms.c
Log:
All users need the pid of other clients as a unique identifier. Who list now supplies this


Modified: trunk/src/webclient/comms.c
===================================================================
--- trunk/src/webclient/comms.c	2010-10-09 17:23:21 UTC (rev 1206)
+++ trunk/src/webclient/comms.c	2010-10-09 20:10:10 UTC (rev 1207)
@@ -420,9 +420,10 @@
 			doing = json_escape(u.doing);
 			mws_add(line, "{");
 			if (u_god(user->status)) {
-				mws_add(line, "\"pid\":%d,", w.pid);
-				mws_add(line, "\"realname\":\"%s\",", realname);
+
+				mws_add(line,  "\"realname\":\"%s\",", realname);
 			}
+			mws_add(line, "\"pid\":%d,", w.pid);
 			mws_add(line, "\"username\":\"%s\",", u.name);
 			mws_add(line, "\"channel\":%d,", u.room);
 			mws_add(line, "\"doing\":\"%s\",", doing);




More information about the mw-devel mailing list