egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Clear all users listed within the bots?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
qetuoadgjl
Voice


Joined: 26 Feb 2008
Posts: 11

PostPosted: Sat Mar 15, 2008 12:31 pm    Post subject: Clear all users listed within the bots? Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Mar 15, 2008 6:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Mar 15, 2008 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Mar 15, 2008 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber