Re: disallowing color in certain channels

From: Peter Ajamian (
Date: 08/23/01

NeoStar wrote:
> I am using a color code system where you  type &number anywhere in the code
> or in the MUD to allow for extensive customization both for the players and
> myself. But I know how awful things can look when people decide to go crazy
> with it. I want to make it so that certain channels ignore the &n and just
> print it out regularly. I am totally clueless about where to start!!
> ex. someone types:
> title &1this would be a red title&0
> and instead of having their title actually become red, having it show the
> &1 and &0 or maybe just removing them completely from the result.

Note:  mailer code:

void strip_colorcodes(char *inbuf)
  char *outbuf = inbuf;

  do {
    if (!(*inbuf == '&' && *++inbuf != '&')) {
      *outbuf = *inbuf;
  } while (*inbuf++);


   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 12/06/01 PST