Thread: [Correct script] HELP - greet :)
View Single Post
Old 01-04-2007, 13:13   #3 (permalink)
arcade
TCB & Ratings projects Member, #Mythic representative
 
arcade's Avatar
 
Join Date: Jun 2004
Location: In fatza calculatorului!!
Age: 19
Posts: 218
Rep Power: 37
arcade is on a distinguished road
Send a message via Yahoo to arcade
Default

add this proc to your code:

Code:
proc greet:parse {greet} {
set greet [string map { %nick% $nick %chan% $chan} [split $greet]]
return $greet
}
and in your join process replace this:
Code:
putserv "NOTICE $nick :$nick, [::stats::channel -get $chan greet]"
with:
Code:
set greet [::stats::channel -get $chan greet]
putserv "NOTICE $nick :[greet:parse $greet]"
also hope you didn't change what AdrianK stated before, because as far as I can tell that line is from the a:tell process and it is used to define the colors that the bot will output your text in. So if you changed it, put it back :P

Enjoy!
__________________
Fuck oFF!
arcade is offline   Reply With Quote