| View previous topic :: View next topic |
| Author |
Message |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Sat Aug 15, 2009 12:11 pm Post subject: Need to ignore @staff.dalnet |
|
|
Hello Friends i need it greet to normal users notany IRCop etc can you guys PLease Turen it to Ignore @staff.dalnen
| Code: | 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" |
the help will be Much appreciate. Thanks |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Sat Aug 22, 2009 6:25 pm Post subject: |
|
|
Just add | Code: | | set welc(badhost) "staff@dal.net" | in the settings part and add | Code: | | if {[string match -nocase "$nick!$uhost" "$welc(badhost)"]} { return } | below | Code: | proc givewelcome {nick uhost hand chan} {
global welc |  _________________ TCL the misunderstood |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Aug 22, 2009 7:07 pm Post subject: |
|
|
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.
| Code: | -- 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].
| Code: | -- instead of
if {[string match -nocase "$nick!$uhost" "$welc(badhost)"]} { return }
-- use
foreach entry [split $welc(badhosts)] {
if {[string match -nocase "*@$entry" $uhost]} { return }
} |
_________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Sat Aug 22, 2009 7:14 pm Post subject: |
|
|
Needs a bit of work still
The host of an ircop on DALnet is staff.dalnet _________________ I must have had nothing to do |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Aug 22, 2009 7:26 pm Post subject: |
|
|
| arfer wrote: | Needs a bit of work still
The host of an ircop on DALnet is staff.dalnet |
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. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Sat Aug 22, 2009 7:50 pm Post subject: |
|
|
Ok, I understand. I posted my response for TCL_no_TK before I read your input.
IRC networks come in all flavours and degrees of strangeness I suppose. _________________ I must have had nothing to do |
|
| Back to top |
|
 |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Sun Aug 23, 2009 1:14 am Post subject: |
|
|
Hello,
Thanks for replay
but i am confused can some one from you give me in Quote the complete correct code?
Thank you |
|
| Back to top |
|
 |
|