account_handler
index
/Users/hollis/Desktop/nakedmud/lib/pymodules/account_handler.py

account_handler.py
 
The login and creation of accounts, and handles all account procedures, loading
and deleting, of characters.

 
Modules
       
account
char
event
hooks
mud
mudsys
socket
telnetlib
utils

 
Functions
       
__unload__()
removes the hooks for account handling
account_handler_hook(info)
When a socket connects, put them into the account handler menu.
acct_load_char(sock, name)
loads a character attached to the account. Argument supplied must be a
name of the corresponding character
acct_main_menu(sock)
displays the main menu for the account and asks for a command
acct_menu_handler(sock, arg)
parses account commands (new character, enter game, quit, etc)
acct_new_password_handler(sock, arg)
asks a new account for a password
acct_new_password_prompt(sock)
acct_password_handler(sock, arg)
asks an account to verify its password
acct_password_prompt(sock)
acct_wait_dns_handler(sock, arg)
acct_wait_dns_prompt(sock)
check_acct_name(name)
Makes sure an account name is valid
copyover_complete_hook(info)
display_acct_chars(sock)
shows the socket a prettied list of characters tied to the account it
has attached. Prints three names per line.
dns_check_event(owner, void, info)
After a socket connects, monitor their hostname until dns lookup is
complete. Then, put the socket into the account handler.
find_reconnect(name)
searches through the character list for a PC whose name matches the
supplied name
login_method_handler(sock, arg)
login_method_prompt(sock)
try_create_account(sock, name, psswd)
try_load_account(sock, name, psswd)
Attempt to load an account with the given name and password.

 
Data
        squelch = '\xff\xfb\x01'
unsquelch = '\xff\xfc\x01'