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.

Listening for input on query - User registration system

Old posts that have not been replied to for several years.
Locked
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

Listening for input on query - User registration system

Post by Aron »

I want to make a user registration system that works as follows:

An operator triggers the registration, with something like !adduser nickname , nothing fancy, or no problems so far.

The bot then opens a query window to the specified nick, asking for a password to complete their registration. Also, no problems so far.

Then the problem comes. The bot must listen for input (password) on the query, and i dont have a clue on how to do this :(

After that, the bot should ask the user to type YES/NO, if their password is correct, which has the same problem, but will probably have something to do with a "switch" statement.

If the user types YES, the user is added with his hostmask, nickname/handle and the password he supplied.

I already did some searches but couldn't find anything :(

Thanks in advance.

-Aron
The best way to start learning is to start helping.
m
masskilla
Op
Posts: 172
Joined: Wed Oct 03, 2001 8:00 pm
Location: Croatia

Post by masskilla »

Read tcl-commands.doc.

Especially on msg and msgm binds.
MaSsKilla

#eggdrop
Undernet
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

tcl-commands.doc
setuser <handle> <entry-type> [extra info]
Description: this is the counterpart of getuser. It lets you set the
various values. Other then the ones listed below, the entry-types are
the same as getuser's.
PASS - sets a users password (no third arg will clear it)
[snip]

passwdok <handle> <pass>
Description: checks the password given against the user's password.
Check against the password "" (a blank string) or "-" to find out
if a user has no password set.
Returns: 1 if the password matches for that user; 0 otherwise
Module: core
these should help you.
Locked