mIRC Home    About    Download    Register    News    Help

Topic Options
#118994 - 01/05/05 02:27 AM [censored] LIST BUG
lovetz Offline
Bowl of petunias

Registered: 01/05/05
Posts: 2
on ShitList:join:#: {
/mode $chan +b $nick | /kick $chan $nick You Are ShitListed ... Out Lamer!!!
}
on ShitList:text:*:#: {
/mode $chan +b $nick | /kick $chan $nick You Are ShitListed ... Out Lamer!!!
}
on *:text:![censored]*:#:{
if ($nick != %master){ halt }
else { auser shitlist $2 }
}
on *:text:!del*:#:{
msg $2 You have been deleted. You aren`t [censored] anymore!Thanx the operator!
ruser $2
}
see this script! as you see it must work correctly but no!
on ![censored] it reacts but on !del doesn`t huh...

Top
#118995 - 01/05/05 03:25 AM Re: [censored] LIST BUG
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: NC, USA
Easy answer... if they are ON the shitlist in your userlist, then the first on text will trigger and the second won't since they would both trigger for the exact same thing. You'd need these in separate scripts or else change how they are written. You could even put the !del into the "on shitlist:text" part since it would be called from there anyhow.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#118996 - 01/05/05 03:30 AM Re: [censored] LIST BUG
lovetz Offline
Bowl of petunias

Registered: 01/05/05
Posts: 2
hmm that`s an option! thank you dude!:)

Top
#118997 - 01/05/05 10:16 AM Re: [censored] LIST BUG
Kelder Offline
Hoopy frood

Registered: 12/04/03
Posts: 701
Loc: Leuven, Belgium
on BlackList:join:#:ban -k $nick 3 $nick You Are BlackListed... Out Lamer!!!
on BlackList:text:*:#:ban -k $nick 3 $nick You Are BlackListed... Out Lamer!!!

on master:text:!BlackList *:#:auser BlackList $$2
on master:text:!del *:#:{
msg $$2 You have been deleted. You aren`t blacklisted anymore! Thank the operator!
ruser BlackList $2 3
}


I changed from $nick == %master to a user level master, makes it somewhat more extensible, just add all masters the same way as you add people to your blacklist smile You can ofcourse play around with the masks to prevent people from doing a /nick and unbanning themselves...

The del part might give trouble if the user is not online at that moment, not sure how to handle that. (online meaning on the irc network, but not in your channel since he'd be kicked out immediately anyway)
This way you can also ban masters and they won't be able to unblacklist themselves. Added the level to /ruser, so that you don't kill all levels should there be more than one.

I used 3 as the mask for the blacklist members, you can ofcourse choose another mask (see /help $mask for the possibilities)

Top