This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
Nucleus
Voice
Posts: 34 Joined: Fri Jul 09, 2004 3:35 am
Post
by Nucleus » Mon Apr 18, 2005 6:47 am
Code: Select all
bind pubm - "* #*" pub_dont_invite
proc pub_dont_invite {nick host handle channel arg} {
global botnick
if {![isop $botnick $channel]} {return 0}
if {[isop $nick $channel]} {
return 0
}
set n2hand [nick2hand $nick $channel]
if {([matchattr $n2hand m] || [matchattr $n2hand p] || [matchattr $n2hand b] || [matchattr $n2hand n] || [matchattr $n2hand f])} {
return 0
}
if [regexp -nocase dcc $nick] {return 0}
set banmask "*!*[string trimleft [maskhost [getchanhost $nick $channel]] *!]"
set targmask "*!*[string trimleft $banmask *!]"
set ban $targmask
pushmode $channel +b $ban
puthelp "KICK $channel $nick :Inviting"
return 1
}
putlog "=====>> Invite Protection Loaded"
It kicks very fast, but it bans very slow.
[13:40:41] <Nucleus> join #test_spamming
[13:40:43] * You were kicked by _test1_ (Inviting)
[13:40:43] * Attempting to rejoin channel #test1
[13:40:43] * Rejoined channel #test1
[13:40:45] * _test1_ sets mode: +b *!*geek@*.undernet.org
How can i fix this?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon Apr 18, 2005 7:40 am
replace
with
you can even make it faster with putserv or putquick (read tcl-commands.doc)
De Kus
Revered One
Posts: 1361 Joined: Sun Dec 15, 2002 11:41 am
Location: Germany
Post
by De Kus » Mon Apr 18, 2005 8:02 am
i would rather use flushmode with pushmode than replacing it with a default RAW queue. for kicks i would suggest using putkick instead of puthelp "KICK" and even better would be using newchanban to replace both of them (of course the last one would make it more hard for regular ops to remove the ban).
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under
The MIT License
Love hurts, love strengthens...
awyeah
Revered One
Posts: 1580 Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:
Post
by awyeah » Mon Apr 18, 2005 8:26 am
To make it a bit faster use this:
Replace:
Code: Select all
set banmask "*!*[string trimleft [maskhost [getchanhost $nick $channel]] *!]"
set targmask "*!*[string trimleft $banmask *!]"
set ban $targmask
pushmode $channel +b $ban
puthelp "KICK $channel $nick :Inviting"
with this:
Code: Select all
putquick "MODE $channel +b *!*[string trimleft [maskhost [getchanhost $nick $channel]] *!]" -next
putquick "KICK $channel $nick :Inviting" -next
Also combine all this into one:
Code: Select all
if {![isop $botnick $channel]} {return 0}
if {[isop $nick $channel]} {
return 0
}
set n2hand [nick2hand $nick $channel]
if {([matchattr $n2hand m] || [matchattr $n2hand p] || [matchattr $n2hand b] || [matchattr $n2hand n] || [matchattr $n2hand f])} {
return 0
}
if [regexp -nocase dcc $nick] {return 0}
Like this:
Code: Select all
if {![isop $botnick $channel] || [isop $nick $channel] || [matchattr [nick2hand $nick $channel] m] || [matchattr [nick2hand $nick $channel] p] || [matchattr [nick2hand $nick $channel] b] || [matchattr [nick2hand $nick $channel] n] || [matchattr [nick2hand $nick $channel] f] || [regexp -nocase "dcc" $nick]} {return 0}
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Nucleus
Voice
Posts: 34 Joined: Fri Jul 09, 2004 3:35 am
Post
by Nucleus » Mon Apr 18, 2005 9:04 am
awyeah
I have to say, that actually made a very big difference in the speed.
Thank you
Nucleus
Voice
Posts: 34 Joined: Fri Jul 09, 2004 3:35 am
Post
by Nucleus » Mon Apr 18, 2005 9:05 am
umm....how did i end up with only 5 posts?