| View previous topic :: View next topic |
| Author |
Message |
qetuoadgjl Voice
Joined: 26 Feb 2008 Posts: 11
|
Posted: Sat Mar 15, 2008 12:31 pm Post subject: Clear all users listed within the bots? |
|
|
| 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 |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Mar 15, 2008 6:21 pm Post subject: |
|
|
Other than deleting the userfile and starting all over?
Which criterias would qualify for an automated removal? (flags, last seen, etc) _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Mar 15, 2008 6:30 pm Post subject: |
|
|
You can write a peace of script which deletes all +f users for example
| Code: | 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...) _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Mar 15, 2008 7:43 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|