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