After I've setted that variable I want to find if that 'hostname' is on the channel where the bot is running. I want to switch the hostname into the host's nickname , ex:
If nickname "eggie" has hostname "*!*@bot.users.undernet.org", I want to 'show' that nickname
set edu(hostname) "*!*@edu.users.undernet.org"
bind pub o .find edu:find
proc edu:find {nickname hostname handle channel text} {
global edu
foreach n [chanlist $channel] {
if {[string match -nocase $edu(hostname) $n![getchanhost $n $channel]]} {
set found $n
break
}
}
if {[info exists found]} {
putserv "privmsg $channel :Found $n"
}
}