im looking to make improvements upon that hash table greet that i had one here in the other post
the main thing that i am looking to do( yes it could use more checks to avoid errors and possibly some echos) is to get it to work by addy rather than nick
#greet on
on *:start: {
if ($exists(greet.hsh)) {
hmake -s greet 100
hload -so greet greet.hsh
}
else {
hmake -s greet 100
hsave -so greet greet.hsh
}
}
on *:exit: {
hsave -so greet greet.hsh
hfree -s greet
}
on !*:join:#: {
if ($hfind(greet, $nick)) {
msg $chan $nick $+ : $hget(greet, $nick)
}
else {
msg $chan !greet <your greeting here> and i will greet you with that every time you join.
}
}
on *:text:!greet *:#: {
hadd -s greet $nick $2-
var %greeting = $hget(greet,$nick)
msg $chan $nick $+ 's greeting was set to: %greeting
}
#greet end
i would like to at least try and tackle this myself
so any suggestions on how to approach it would be appreciated as opposed to code