[mw-devel] MW3 r1315 - trunk/src

arthur at sucs.org arthur at sucs.org
Tue Dec 11 22:04:12 GMT 2012


Author: arthur
Date: 2012-12-11 22:04:12 +0000 (Tue, 11 Dec 2012)
New Revision: 1315

Modified:
   trunk/src/talker.c
Log:
clean out unused code


Modified: trunk/src/talker.c
===================================================================
--- trunk/src/talker.c	2012-12-11 22:01:07 UTC (rev 1314)
+++ trunk/src/talker.c	2012-12-11 22:04:12 UTC (rev 1315)
@@ -135,14 +135,12 @@
 static void talk_send_say(char * text, int channel){
 	mwlog("SAY %s", text);
 	catchuri(text);
-	//snprintf(buff, MAXTEXTLENGTH, "%s: %s", user->name, text);
 	talk_send_to_room(text, channel, "say", -1);
 }
 
 void talk_send_raw(char * text, int channel){
 	mwlog("RAW %s", text);
 	catchuri(text);
-	//snprintf(buff, MAXTEXTLENGTH, "%s", text);
 	talk_send_to_room(text, channel, "raw", -1);
 }
 
@@ -161,25 +159,6 @@
 }
 
 void talk_send_emote(char * text, int channel, int plural){
-
-	/*
-	switch (plural) {
-		case 1:
-			snprintf(buff, MAXTEXTLENGTH, "%s's %s", user->name, text);
-			break;
-		case 2:
-			snprintf(buff, MAXTEXTLENGTH, "%s' %s", user->name, text);
-			break;
-		case 3:
-			snprintf(buff, MAXTEXTLENGTH, "%s'd %s", user->name, text);
-			break;
-		case 4:
-			snprintf(buff, MAXTEXTLENGTH, "%s'll %s", user->name, text);
-			break;
-		default:
-			snprintf(buff, MAXTEXTLENGTH, "%s %s", user->name, text);
-	}
-	*/
 	catchuri(text);
 	mwlog("EMOTE %s", text);
 	talk_send_to_room(text, channel, "emote", plural);




More information about the mw-devel mailing list