if (strncasecmp (data+1, "[PM from ", 9) == 0) { PM=1;
if (strncasecmp (data+2, "[PM from ", 9) == 0) {
void process_raw_text (const Uint8*data, int data_len) {  int len;  int len2;  int PM=0;  //char name[40];  char chat_name[40];  char *loc;  char chat_seperator[5];    strcpy (chat_seperator, ":");  if (debug >= DEBUG_MEDIUM) log_info ("%s\n", data);  if ((unsigned char) data[0] != 128 + c_red1) return;  if (debug >= DEBUG_HIGH) log_info ("Looks like chat...\n");  if (strncasecmp (data+1, "[PM from ", 9) == 0) {  	PM=1;    len = strlen (boss_name);	loc = strstr(data, chat_seperator);	if (debug >= DEBUG_HIGH) log_info ("I got a PM!\n");  	/*len2 = loc-data- 10;  	strncpy (chat_name, data+10, len2);  	strcpy (chat_name+len2, "\0");*/  	for (len2 = 0; len2 < 16 && data[len2+10] != ':'; len2++) {			chat_name[len2] = data[len2+10];		}    chat_name[len2] = 0;  	  	if(!strcmp(my_name, chat_name))return; // Don't talk to myself  	if (debug >= DEBUG_HIGH) log_info ("I've got %s\n", chat_name);    	if(PM!=0) process_text_message(data+10+len2+2, chat_name, 1);  }	if (data[0] == 136 && strstr(data+1, " wants to trade with you")) {		char *actor_name;				actor_name = strstr(data+1, " wants to trade with you");		*actor_name = 0;		actor_name = data+1;				printf("Someone wants to trade with me!\n");				trade_with(actor_name);		return;	}}