mIRC Home    About    Download    Register    News    Help

Print Thread
#101849 29/10/04 11:00 PM
Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
I got a script, and im tryin to make it where it will check voiced ppl only, and if they havnt said nothing in 15 mins, it will devoice them, i was hoping someone here could help me out on this one..

#idlekicker on

on me:*:JOIN:#channel: .timer 0 300 CheckIdlers

#idlekicker end

alias CheckIdlers {
var %chan = #channel
if ($me !isop %chan) { echo -a You are not oped on %chan | return }
var %a = $nick(%chan,0,v)
while (%a) {
if ($nick(%chan,%a,r).idle > 100) { /msg chanserv devoice $chan $nick Idling is not allowed! }
dec %a
}
}

Thanks in advance

#101850 01/11/04 09:41 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
$nick(%chan,%a,r) = not voiced regular so
devoiceing them would do nothing smile
and also

$chan
there was no $chan identifier

try sorting that out and it might work,

alias CheckIdlers {
var %chan = #channel
if ($me !isop %chan) {
echo -a You are not oped on %chan
return
}
var %a = $nick(%chan,0,v)
while (%a) {
if ($nick(%chan,%a,v).idle > 100) {
msg chanserv devoice %chan $nick(%chan,%a,v) Idling is not allowed!
}
dec %a
}
}


try that
wink

oh,
you might want to put a timer on the /msg chanserv
because if you are devoiceing alot of users in one
then you might get flooded off the server

smile

#101851 02/11/04 12:19 AM
Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
it works, thanks alot smile


Link Copied to Clipboard