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.

Clear all users listed within the bots?

General support and discussion of Eggdrop bots.
Post Reply
q
qetuoadgjl
Voice
Posts: 11
Joined: Tue Feb 26, 2008 11:03 am

Clear all users listed within the bots?

Post by qetuoadgjl »

Okay, so I have about 500 people added within my bots as friends etc, and I'm wanting a big clear out, any fast way of doing this? ty
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Other than deleting the userfile and starting all over?

Which criterias would qualify for an automated removal? (flags, last seen, etc)
NML_375
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You can write a peace of script which deletes all +f users for example

Code: Select all

foreach user [userlist f|f] {
 # protect +n users from being deleted
 if {![matchattr $user n]} {
  deluser $user
 }
}
(this can be modified to be triggered via a DCC command...)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

cleanusers.tcl
slennox wrote: Removes users from the userfile who haven't been seen in a specified number of days. Can also remove users who don't have a password set. Cleanups can be done automatically once a day or manually via DCC commands.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply