This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

partyline mboot / anti-idle?

Old posts that have not been replied to for several years.
Locked
j
jedis

Post by jedis »

Has anyone heard of such a tcl?

Looking for something that will check for all users on the partyline, except owners (including remote bots, yes they have remote boot enabled), and if they have been idle more than 15 minutes, to kill their dcc connection.

Also, a way to kill all dcc connections to the bot, except owners, whether they are idleing or not. .mboot, for example.

Thanks
j
jedis

Post by jedis »

Found killdcc.tcl, but how about the idle checking?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Code: Select all

#set this to the amount of mins idle, before they are kicked off
set aidlet 20

bind time - "*" time:mboot
proc time:mboot {min hour day month year} {
  global aidlet
  if {[expr [string trimleft $min 0] % 15]} { return }
  foreach _A [whom *] {
    if {[lindex $_A 3] == "*"} { continue }
    if {[lindex $_A 4] == $aidlet} {
      boot "[lindex $_A 0]@[lindex $_A 1]" "Anti-idle boot"
    }
  }
}

bind dcc n "mboot" dcc:mboot
proc dcc:mboot {hand idx arg} {
  foreach _A [dcclist chat] {
    if {[matchattr [lindex $_A 1] n]} { continue }
    boot [lindex $_A 1] "Mass boot"
  }
}
j
jedis

Post by jedis »

Great, thanks ppslim :smile:
j
jedis

Post by jedis »



<font size=-1>[ This Message was edited by: jedis on 2001-12-23 04:54 ]</font>
s
sipko

Post by sipko »

Ok this is good, but what if some user is in other bot and not on this one which runs the script.
command is like: .boot nick@bot

Is some fix for that?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

WHat are you trying to say, that the bot is not booting people off on other bots, only the bot with the script?

If so, then this is the way the script is working fine, yet a setting on the other bot, is blocking the boot. There is a setting, which will only allow local boots, and no remote boots.
Locked