ban
index
/home/thindil/Projekty/anaria/server/lib/pymodules/ban.py

ban.py
 
handle ban via IP.

 
Modules
       
hooks
mudsys
socket
storage

 
Functions
       
__unload__()
removes hook from game.
ban_hook(info)
When a socket connects, check if it is not banned.
cmd_banip(ch, cmd, arg)
Usage: banip <IP>
 
Ban/unban selected IP.
load_banlist()
Read banned IP from file.
save_banlist()
Saves all banned IP to file.

 
Data
        banlist = []
banlist_file = '../lib/misc/banlist'