mIRC Home    About    Download    Register    News    Help

Print Thread
#129068 02/09/05 09:51 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
for those who just join and part in ~same time...
i ask if someone could script me a lil scriptie
that will just ban their [email]id@address[/email]

please =)


IceCapped
#129069 02/09/05 10:42 AM
Joined: Jul 2005
Posts: 25
U
Ameglian cow
Offline
Ameglian cow
U
Joined: Jul 2005
Posts: 25
on *:join:#:inc -u1 %jpflood. [ $+ [ $+($chan,.,$nick) ] ]
on *:part:#:if (%jpflood. [ $+ [ $+($chan,.,$nick) ] ]) ban $chan $nick 2

-u1 = in 1 second

who joins and parts in 1 second,your script bans [email]ip@adress[/email]

Note : My eng. is very bad smile

#129070 02/09/05 11:47 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
thank you kind sir =)


IceCapped
#129071 02/09/05 11:49 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
You forgot a space between ]) in the on part event, it should work for the rest.

for /inc, /dec, /set and /var you don't need as much evaluation, since you don't want to set the current value of the %var to a new value, you want to set the %var itself smile
This one's a tiny little bit shorter, maybe not more clear though...

on !*:join:#:inc -u1 $+(%,jpflood.,$chan,.,$nick)
on !@*:part:#:if ($($+(%,jpflood.,$chan,.,$nick),2)) ban $chan $nick 2


ps: $(stuff,2) is the same as $eval(stuff,2)

#129072 02/09/05 11:57 AM
Joined: Jul 2005
Posts: 25
U
Ameglian cow
Offline
Ameglian cow
U
Joined: Jul 2005
Posts: 25
you are right.
thank you kelder wink


Link Copied to Clipboard