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

arthur at sucs.org arthur at sucs.org
Wed Feb 13 11:47:19 GMT 2013


Author: arthur
Date: 2013-02-13 11:47:19 +0000 (Wed, 13 Feb 2013)
New Revision: 1330

Modified:
   trunk/src/webclient/comms.c
   trunk/src/webclient/mwpoll.c
Log:
Actual send emote when asked for


Modified: trunk/src/webclient/comms.c
===================================================================
--- trunk/src/webclient/comms.c	2013-02-12 07:28:54 UTC (rev 1329)
+++ trunk/src/webclient/comms.c	2013-02-13 11:47:19 UTC (rev 1330)
@@ -438,7 +438,7 @@
                 return 1;			
 	}else
         if (co->authd && strncasecmp(buff, "emote ", 6)==0) {
-		talk_send_to_room(&buff[6], user->room, "say", -1);
+		talk_send_to_room(&buff[6], user->room, "emote", 0);
 		mwlog("EMOTE %s", &buff[6]);
                 snprintf(buff, sizeof buff, "{\"status\":\"Emote Sent to channel %d\"}", user->room);
                 send(co->fd, buff, strlen(buff), 0);

Modified: trunk/src/webclient/mwpoll.c
===================================================================
--- trunk/src/webclient/mwpoll.c	2013-02-12 07:28:54 UTC (rev 1329)
+++ trunk/src/webclient/mwpoll.c	2013-02-13 11:47:19 UTC (rev 1330)
@@ -37,10 +37,12 @@
 	if (pid != 0) {
 		return pid;
 	} else {
+		/* why is this needed ? 
 		if (seteuid(110)) {
 			printf("seteuid failed. %s\n", strerror(errno));
 			exit(0);
 		}
+		*/
 		setsid();
 		close(0);
 		close(1);




More information about the mw-devel mailing list