egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need to ignore @staff.dalnet

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Sat Aug 15, 2009 12:11 pm    Post subject: Need to ignore @staff.dalnet Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Sat Aug 22, 2009 6:25 pm    Post subject: Reply with quote

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
Exclamation
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Aug 22, 2009 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Sat Aug 22, 2009 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Aug 22, 2009 7:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Sat Aug 22, 2009 7:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Sun Aug 23, 2009 1:14 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber