set salon "#chan"
set excepts {
proxad.net
cegetel.fr
etc etc
}
bind join - * except
proc except { nick uhost handle channel } {
global salon excepts
set userhost [getchanhost $nick]
set temp(excepts) {
"something"
"else"
}
bind join - * pub:join
proc pub:join {nick uhost hand chan} {
global temp
foreach n $temp(excepts) {
if {![string match -nocase $n [lindex [split [getchanhost $nick $chan] @] 1]]} {
#if the host IS NOT in the excepts list do something
} else {
#if the host IS in the excepts list do something else
}
}
}