set welc(msg) " \002Commands for Public Help\002"
set welc(chan) "#BigHosTers"
set welc(type) "1"
bind join - #BigHosTers* givewelcome
proc givewelcome {nick uhost hand chan} {
global welc
set welctxt $welc(msg)
regsub -all "%nick" $welctxt "$nick" welctxt
regsub -all "%chan" $welctxt "$chan" welctxt
switch $welc(type) {
1 { puthelp "NOTICE $nick :$welctxt"
puthelp "NOTICE $nick : !info !uptime !vhost !Payment !Eggdrop !Psybnc !Contact !PsyHelp !reseller"
puthelp "NOTICE $nick : Ask all Questions on Main No Private if someone Invite you to any Company or Channel please let us know the nick Thank you for cooperation"
}
2 { puthelp "PRIVMSG $nick :$welctxt" }
}
}
putlog "Egghelp.org"
as TCL_no_TK said, this is rather trivial to do, his method just has one small part incorrect which renders it all useless. He uses [set welc(badhost) ident@host], but then uses [string match nick!ident@host ident@host] which will of course never match. To get this to work we either need to change the [set welc(badhost)] section or the [string match]. Instead let's do both so you can use as many hosts as you like. If you use more than 1, seperate each additional with a space.
-- instead of
set welc(badhost) "staff@dal.net"
-- use
set welc(badhost) "*staff.dal.net *some.network.i-hate.com *lamevhost.com etc*etc.com"
Then we need to correct the method TCL_no_TK was using within his [string match] check. This time we will iterate over the [split welc(badhost)] list and watch for [string match -nocase *@host ident@host].
-- instead of
if {[string match -nocase "$nick!$uhost" "$welc(badhost)"]} { return }
-- use
foreach entry [split $welc(badhosts)] {
if {[string match -nocase "*@$entry" $uhost]} { return }
}
how does it need work? you simply add *staff.dalnet* to the list. This is why it's a list. Your expected to add to it or modify things. Not having used dalnet since they went all "holier than thou" and started to ban any channel not fitting their particular "agenda" (read this as censoring/juping). I left that place in the dust long ago.