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.

flyby tempban help

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
f
flashy
Voice
Posts: 24
Joined: Mon May 01, 2006 3:38 am

flyby tempban help

Post by flashy »

need help please, im trying to make a flyby script tempban for a minute
i've try adding

Code: Select all

putserv "privmsg chanserv :$c tempban [maskhost $n!$u] 1m" 
didnt work,it bans , but the ban doesnt get removed.

i'm using

Code: Select all

bind part - * ban:flyby

proc ban:flyby {nick uhost hand chan arg} {
if [matchattr $hand of|of] return ;
if {[getchanjoin $nick $chan] >= [expr {[clock seconds]-3}]} {
putquick "MODE $chan +b *!*@[lindex [split $uhost @] 1]"
 }
}
from this post
http://forum.egghelp.org/viewtopic.php? ... ight=flyby


thanks in advance.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

You need to add a timer to remove the ban..
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

simply enable dynamicbans for your channels, this will then use the ban-time setting to remove bans (if you set it, which you should have)

.chanset * +dynamicbans
f
flashy
Voice
Posts: 24
Joined: Mon May 01, 2006 3:38 am

Post by flashy »

great idea on the dynamicbans will give it a try , thanks.
Post Reply