BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: redmagician on August 24, 2007, 05:18:45 pm

Title: Colors Module - Priority
Post by: redmagician on August 24, 2007, 05:18:45 pm
Hi all,
Just thought I'd post my thoughts on the colors module.
First, I love these new ##color## tags, it cuts down on me having to lookup the correct hex value.

However, I've run into a "problem" and would like to know if this is intended or possibly an oversight.

Take this code in the whois module:
$result = "\"##whois_name##" . $who["nickname"] . "##end##\"";

In the current colors implementation if $who["nickname"] contains a color (for example black)
It has higher priority than the theme so the output is "##whois_nameend##" instead of "Black"

I believe themes should have a higher priority so I moved the "create all other color tags" check to be last, but I'd really like to know what other people think.
Title: Re: Colors Module - Priority
Post by: Alreadythere on August 24, 2007, 05:46:17 pm
I guess it would have been smarter to use different tags for opening and closing...

Anyways, you can try moving block creating the color tags behind the block creating the scheme tags, perhaps it will help.
SimplePortal 2.3.7 © 2008-2024, SimplePortal