Adding MCCP:
1. When booting up the mud you should allocate the memory of mud->mccp_buf.
mud->mccp_buf = calloc(sizeof(char), COMPRESS_BUF_SIZE);
2. Call send_will_mccp() when there is a new connection in comm.c before the
greeting.
void new_descriptor(void)
{
send_will_mccp(dnew);
}
3. When closing a socket make sure to call end_compress()
void close_socket( DESCRIPTOR_DATA * dclose )
{
if (dclose->mccp)
{
end_compress(dclose)
}
}
4. In write_to_descriptor() Add the following call:
bool write_to_descriptor( int desc, char *txt, int length )
{
if (d->mccp)
{
write_compressed(d);
return;
}
}