Update hexchat.py

protect against value error on port numbers