Request - Auto-kick lurkers/idlers on channel script

Discussion about Perl, TCL or Python scripts and C/C++ plugins (using and writing them).

Request - Auto-kick

Postby duki3003 » 08 Jan 2010 19:31

I pretty sure that this script has been requested before, or perhaps even exists - but I was unable to find it here or elsewhere.
Someone might suggest me to even try to make the script myself, but I'm a complete newb - and have pretty much 0 knowledge :(

This is what I need -

1. Automatically checks users idle time.
a. Scan every 30, 60 or custom minutes.
b. Exclude OP's and Voiced.
2. Automatically kick and ban users for exceeding maximum allowed idle time in channel. (example kicks after 180 min. idle)
a. Option to set maximum idle time.
b. Timed 3 second ban to prevent auto rejoin.
c. Kick message (No lurking!).

Any information would be greatly appreciated.
Thanks in advance...
duki3003
 
Posts: 6
Joined: 08 Jan 2010 19:12

Postby Khisanth » 11 Jan 2010 01:42

http://lwsitu.com/xchat/kick_idlers.pl should cover all the requirements you mentioned.
Khisanth
 
Posts: 1559
Joined: 10 Jun 2004 05:23

Postby duki3003 » 11 Jan 2010 19:21

Thank you very much for the script, that's pretty much what I was looking for - just 1 more question.
I'm an op on a few channels, most of which lurking is allowed - and from what I understand the script would apply on all channels if just activated, no?

So how do I set it up so it works only on 1 of those channels?
Do I change "use Xchat qw(:all);" to something else or is it something else that needs to be adjusted? :?
duki3003
 
Posts: 6
Joined: 08 Jan 2010 19:12

Postby duki3003 » 12 May 2010 13:55

BUMP

Is there really no way to set this script active on a specific channel I'm @OP in? (I know a similar script exists for mirc, but I'm not really a mirc fan :()
Please does anyone know?
duki3003
 
Posts: 6
Joined: 08 Jan 2010 19:12

Postby Khisanth » 12 May 2010 18:26

Version 0.0200 uploaded with that option, Same URL.
Khisanth
 
Posts: 1559
Joined: 10 Jun 2004 05:23

Postby duki3003 » 12 May 2010 21:17

:o Didn't know there was a v2, you never replied of the changes made - I had the previous (original?) 0.0100 till now.
Anyway tested it, it works like a charm, I love it... :D

Thanx
duki3003
 
Posts: 6
Joined: 08 Jan 2010 19:12

Postby duki3003 » 14 May 2010 23:53

After a longer use, I've noticed some issues with the timer...

Initially I changed the time allowed lurking - (# kick anyone idling longer than this many seconds) to 180 * 60 but the script didn't interpret that well and kicked anyone roughly after ~180 sec.
So I edited out the calculation and used an actual # of sec
Code: Select all
# kick anyone idling longer than this many seconds
my $max_idle_time = 10800;
and the scan interval to 30 minutes
Code: Select all
# number of seconds between scans for lurkers
my $scan_interval = 1800;


After a quick test (I logged in using Xchat and qwebirc application) it seemed to work,
[12:55:39] --> idle-kickee (qwebirc@1F1FD4B8.BB7B48B0.40E8AEAC.IP) has joined #fav-chan

*snip*

[16:01:15] * @Duki3003 sets ban on idle-kickee!*@*
[16:01:16] <-- @Duki3003 has kicked idle-kickee from #bakabt-support ("No lurking!")
[16:01:18] * @Duki3003 removes ban on idle-kickee!*@*
but in further practice with actual users that timer was always off
[21:33:29] --> Alvira (~kir@Rizon-F61D756C.dyn.iinet.net.au) has joined #fav-chan
[21:36:25] <-- rebsto3 has quit (Ping timeout: 240 seconds)
[22:29:41] * @Duki3003 sets ban on Alvira!*@*
[22:29:41] <-- @Duki3003 has kicked Alvira from #fav-chan ("No lurking!")
[22:29:44] * @Duki3003 removes ban on Alvira!*@*

Apart from the kick message, scan time, and channel it's used for I made no changes to the script.
duki3003
 
Posts: 6
Joined: 08 Jan 2010 19:12


Return to Scripts and Plugins

Who is online

Users browsing this forum: No registered users and 2 guests

cron