From 9b79f112a0cd3764e7c3c7703311e64bf0f342fd Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 13 Apr 2006 14:26:06 +0000 Subject: [PATCH] src/drivers/__init__.py: Make Socket the default driver since Twisted has been causing so many problems lately. --- src/drivers/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/drivers/__init__.py b/src/drivers/__init__.py index 112f3d81c..859fe8118 100644 --- a/src/drivers/__init__.py +++ b/src/drivers/__init__.py @@ -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'])