Update chat.py

Added block feature. Cleaned up ip addresses