dded code to Socket driver to make sure it refuses to connect when network.ssl is set to True

This commit is contained in:
Ali Afshar 2005-03-11 18:37:02 +00:00
parent eab237da47
commit df2336505d
1 changed files with 6 additions and 1 deletions

View File

@ -63,7 +63,12 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
self.connected = False
self.reconnectWaitsIndex = 0
self.reconnectWaits = reconnectWaits
self.connect()
#Only connect to non-SSL servers
if self.networkGroup.get('ssl').value:
drivers.log.error('The Socket driver can not connect to SSL \
servers. Stopping.')
else:
self.connect()
def _getNextServer(self):
oldServer = getattr(self, 'currentServer', None)