mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
src/drivers/__init__.py: Make Socket the default driver since Twisted has been causing so many problems lately.
This commit is contained in:
parent
96e001e43a
commit
9b79f112a0
@ -184,6 +184,11 @@ def newDriver(irc, moduleName=None):
|
||||
if moduleName is None:
|
||||
moduleName = conf.supybot.drivers.module()
|
||||
if moduleName == 'default':
|
||||
# XXX Twisted has been causing problems lately, so we're going to use
|
||||
# the Socket driver by default, now. Leaving behind the code for using
|
||||
# Twisted by default in case someone steps up and fixes the Twisted
|
||||
# driver.
|
||||
'''
|
||||
try:
|
||||
import supybot.drivers.Twisted
|
||||
moduleName = 'supybot.drivers.Twisted'
|
||||
@ -193,6 +198,8 @@ def newDriver(irc, moduleName=None):
|
||||
# module is cleaned up already.
|
||||
sys.modules.pop('supybot.drivers.Twisted', None)
|
||||
moduleName = 'supybot.drivers.Socket'
|
||||
'''
|
||||
moduleName = 'supybot.drivers.Socket'
|
||||
elif not moduleName.startswith('supybot.drivers.'):
|
||||
moduleName = 'supybot.drivers.' + moduleName
|
||||
driverModule = __import__(moduleName, {}, {}, ['not empty'])
|
||||
|
Loading…
Reference in New Issue
Block a user