Added more compatibility checks for twisted.words in case IRC is activated. IMC2 implementation is cleaned up and converted to new comm system, but it's not working correctly and not usable.

This commit is contained in:
Griatch 2011-04-18 22:09:29 +00:00
parent 019eb8d00c
commit 1ced5ee8f2
7 changed files with 131 additions and 15 deletions

View file

@ -441,6 +441,15 @@ def check_evennia_dependencies():
errstring += "\n WARNING: South version %s found. Evennia recommends version %s or higher." % (sversion, south_min)
except ImportError:
pass
# IRC support
if settings.IRC_ENABLED:
try:
import twisted.words
except ImportError:
errstring += "\n ERROR: IRC is enabled, but twisted.words is not installed. Please install it."
errstring += "\n Linux Debian/Ubuntu users should install package 'python-twisted-words', others"
errstring += "\n can get it from http://twistedmatrix.com/trac/wiki/TwistedWords."
no_error = False
errstring = errstring.strip()
if errstring:
print "%s\n %s\n%s" % ("-"*78, errstring, '-'*78)