On Sun, 15 Oct 2000, Todd A Laycock wrote:
> /*
> * Convert the IAC string so that it is filtered out. This
> * should, in theory, leave the 'U' from the compression
> * handshake but in my testing it didn't show up... -gg 3/21/99
> */
> while (*ptr < 0)
> *ptr++ = '\0';
>
> /* If this was everything, pretend we had nothing. */
> if (ISNEWL(*ptr))
> *ptr++ = '\0';
> } else if (ISNEWL(*ptr))
> nl_pos = ptr;
> }
>--------------------------------------------------------------------------
>
>Now the question I have is, can and how do I get rid of that 'U' so that
>it doesn't interfere with people logging on?
I believe the IAC sequence was 4 characters long, so you could try
replacing the while() with:
for (x = 0; x < 4; x++)
*ptr++ = '\0';
It might be 5 or vary, I don't remember.
--
George Greer
greerga@circlemud.org
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT