mIRC Home    About    Download    Register    News    Help

Topic Options
#15642 - 16/03/03 04:54 PM Away Kick/Ban ?
princessamanda Offline
Pikka bird

Registered: 10/12/02
Posts: 17
Loc: KY
Hi, my friend wanted me to try and find something that would kick and ban someone if they went away/back 2-3 times in a roll, and people are doing that on his channel a lot trying to takeover the channel. Thanks for any help.

Top
#15643 - 16/03/03 06:10 PM Re: Away Kick/Ban ?
Om3gA Offline
Ameglian cow

Registered: 17/02/03
Posts: 35
hrm whats the channel and ther server :P oh yeah the ban thing... well id imagine you could do it like this though it would ban on the single away...

on *:TEXT:*away*:#:/mode $chan +b $nick

but if they are tryin to take the channel then y nto just ban them all... or use flood protection its alot better... thats kinda a really simple way to do it btw im not to sure with read/write commands with mirc which is the only other way i know of to do it
_________________________
Butterflies are random thoughts people have.
They Live, They Die, They Are Pointless.

Top
#15644 - 16/03/03 09:27 PM Re: Away Kick/Ban ?
NightChillz Offline
Fjord artisan

Registered: 09/12/02
Posts: 271
Loc: Canada
just use a little hash table or something, you just need to use the raw events for away on your server:

raw <away numeric>:*:{
hadd -mu5 away.flood.prot $nick $calc($hget(away.flood.prot,$nick) + 1)
if ($hget(away.flood.prot,$nick) >= 3) {
<insert your ban tag here>
<insert your kick tag and message here>
}
}


raw <back numeric>:*:{
hadd -mu5 return.flood.prot $nick $calc($hget(return.flood.prot,$nick) + 1)
if ($hget(return.flood.prot,$nick) >= 3) {
<insert your ban tag here>
<insert your kick tag and message here>
}
}


something like that will suffice just fine, you could always use variable instead, but they're more hassle then you need, and just replace the <tags> with the appropriate data/information and it should work fine, or will work fine with a little "playing" with wink..... good enough for just a quick example (Y)

Top