On Mon, 8 Nov 1999, Emil Nilimaa wrote:
> Anyone did this?
>
> I want players to not be able to use the ansi color codes..
> so whenever they try sending a command to the mud
> including &r or whatever, they get a message like:
> "you cannot use color codes, sorry" etc.
interpreter.c -- command_interpreter()
if (GET_LEVEL(ch) < LVL_GOD && !IS_NPC(ch)) {
if ((strstr(argument, "&") && !strstr(argument, "&&")) || strstr(argument, "\\c")) {
send_to_char("you cannot use color codes, sorry", ch);
return;
}
}
Enjoy...
-- Xual
+------------------------------------------------------------+
| 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 : 12/15/00 PST