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.

Looking for commands

Old posts that have not been replied to for several years.
Locked
C
Chack

Looking for commands

Post by Chack »

Hi,

I am trying to write a script, but i need some special commands for it to work. Those commands are:

A command that let's me retrieve all users added to the bot, or that let'S me retrieve them one by one.

A command that either let's me retrieve a user's host one by one, or that let's me erase them all at once.

In the end I'll try to create a script that erases all old and no longer used users, or erases old and no longer used hosts from a user. I could not find such commands in the manual.

Thanks in advance!
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Re: Looking for commands

Post by GodOfSuicide »

Chack wrote:Hi,

I am trying to write a script, but i need some special commands for it to work. Those commands are:

A command that let's me retrieve all users added to the bot, or that let'S me retrieve them one by one.
[userlist] returns all users, it supports pattern for custom flags
A command that either let's me retrieve a user's host one by one, or that let's me erase them all at once.
[gethosts $handle] returns all hosts in the user file
[getchanhost $nick] returns the ident@host.domain of a user on an channel
In the end I'll try to create a script that erases all old and no longer used users, or erases old and no longer used hosts from a user. I could not find such commands in the manual.
there is allready a purge TCL in the archive if i remember correctly
C
Chack

Post by Chack »

thanks for your help, but [gethosts $handle] seems to be an unknown command for my bot. I'll try to google something.
C
Chack

Post by Chack »

ah ok found it. It's [getuser $handle HOSTS]
Locked