account_handler
index
/home/thindil/Projekty/anaria/server/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
mudsock
mudsys
os
telnetlib
time
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_encoding_handler(sock, arg)
set character encoding for account
acct_encoding_menu(sock)
show available encodings to player.
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)
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
iac_hook(info)
Check for IAC commands.
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
        MCCP = 'U'
MCCP2 = 'V'
MXP = '['
TTYPE = '\x18'
client_do = '\xff\xfd'
client_dont = '\xff\xfe'
server_will = '\xff\xfb'
server_wont = '\xff\xfc'
squelch = '\xff\xfb\x01'
subneg_end = '\xff\xf0'
subneg_start_ttype = '\xff\xfa\x18'
unsquelch = '\xff\xfc\x01'