1 2 3 4 5 6 7 8 9 10 11 12 13 14 | // send back message to the speaker if( is_fake ) { WFIFOW(fd,0) = 0x2C1; WFIFOW(fd,2) = textlen + 12; safestrncpy((char*)WFIFOP(fd,12), fakename, textlen); aFree(fakename); } else { memcpy(WFIFOP(fd,0), RFIFOP(fd,0), RFIFOW(fd,2)); //WFIFOW(fd,0) = 0x8e; WFIFOW(fd,0) = 0x2C1; WFIFOW(fd,2) = textlen + 12; safestrncpy((char*)WFIFOP(fd,12), sd->status.name, textlen); } WFIFOSET(fd, WFIFOW(fd,2)); |