### add color flags to say, topic, and msg
@foregrounds=[$(c.lk) $(c.lr) $(c.ly) $(c.lm) $(c.lc) $(c.lw) $(c.lg) $(c.hb) $(c.hk) $(c.hr) $(c.hy) $(c.hm) $(c.hc) $(c.hw) $(c.hg)] 
@backgrounds=[$(c.bb) $(c.bk) $(c.br) $(c.by) $(c.bm) $(c.bc) $(c.bw) $(c.bg)]
@bluefade=[$(c.lb) $(c.lc) $(c.hb) $(c.hc) $(c.hw)]
@redfade=[$(c.hk) $(c.lm) $(c.hm) $(c.hy) $(c.hw)]
@greenfade=[$(c.lg) $(c.hg) $(c.hy) $(c.hc) $(c.hw)]
@crazyfade=[$bluefade $redfade $greenfade]
alias rancols {
	fec ($*) addcolor {
		@function_return#=[$word($rand($#foregrounds) $foregrounds)$word($rand($#backgrounds)$backgrounds)$addcolor]}}
alias rfade {
	fe ($*) colorword {
		@colorindex=0
		fec ($colorword) colorthis {
			@function_return#=[$word($colorindex $redfade)$colorthis]
			@colorindex++}
		@function_return#=[ ]}}
alias bfade {
	fe ($*) colorword {
		@colorindex=0
		fec ($colorword) colorthis {
			@function_return#=[$word($colorindex $bluefade)$colorthis]
			@colorindex++}
		@function_return#=[ ]}}
alias gfade {
	fe ($*) colorword {
		@colorindex=0
		fec ($colorword) colorthis {
			@function_return#=[$word($colorindex $greenfade)$colorthis]
			@colorindex++}
		@function_return#=[ ]}}
alias cfade {
	^local _cnum 0
	fe ($*) cword {
		@cindex=0
		fec ($cword) cchar {
			@function_return#=[$word($cindex ${_cnum==0?bluefade:_cnum==1?redfade:greenfade})$cchar]
			@cindex++}
		@function_return#=[ ]
		@_cnum++
		@_cnum=_cnum<3?_cnum:0}}
alias lparse {
	@function_return=[$0]==[-c]?cfade($1-):[$0]==[-m]?rfade($1-):[$0]==[-b]?bfade($1-):[$0]==[-r]?rancols($1-):[$0]==[-g]?gfade($1-):[$0]==[-e]?eleet($1-):[$0]==[-k]?cool($1-):[$0]==[-a]?annoy($1-):[$0]==[-p]?cparse("$1-"):[$1-]}
alias topic {
	@lts=[$[1]0]==[#]?[$1-]:[$*]
	//topic ${[$[1]0]==[#]?[$0]:C} ${word(0 $lts)=~[-?]?lparse($word(0 $lts) $restw(1 $lts)):lts}}
alias msg {
	//msg $0 ${[$1]=~[-?]?lparse($1 $2-):[$1-]}}
alias say {
	//say ${[$0]=~[-?]?lparse($0 $1-):[$*]}}
alias t topic
alias m msg

#sjk'97
