Re: [CODE] Color question

From: Akuma/Chris Baggett/DOOMer (doomer@BAYOU.COM)
Date: 03/21/98


Well, first of all, I would recommend checking in process_input()
in comm.c, and stripping the color codes entirely.
of course, then you would know how the colors are done.

but It would all need to start in process_input() somewhere.
make use of the STATE(t) macro and check which state they are in,
so they can't put color in their descriptions either.

I'll prolly attempt to work on something tomorrow that will do just
that. strip color codes completely from input. (then it wouldn't be too hard
to make it level restricted, or even PLR_FLAG restrictive so you can
ban certain people from using colors in input)

shrug. my $((1 << 1)/100.00) worth

Code On
Akuma the Raging Coder

At 03:55 PM 3/21/98 +0100, you wrote:
>I was wondering if anyone had made a level-restriction on the colors? Im
>talking about the &<some-number-here> color code. I like the colors but I
>dont like that every single mortal runs around spamming the mud with colors
>on gossip, titles etc. Just wondered if anybody had made it allready, or a
>possible solution to how to make it. I was thinking about doing it(when I
>get the time).
>
>/Jesper
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>     +------------------------------------------------------------+
>
>
  +------------------------------------------------------------+
  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |
  +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST