mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 07:37:22 +01:00 
			
		
		
		
	Added two XXXes.
This commit is contained in:
		
							parent
							
								
									eaf9f809ca
								
							
						
					
					
						commit
						5ee8f5d9ed
					
				| @ -49,7 +49,9 @@ import supybot.world as world | ||||
| import supybot.drivers as drivers | ||||
| import supybot.schedule as schedule | ||||
| 
 | ||||
| reconnectWaits = (0, 60, 300) | ||||
| # XXX Shouldn't the reconnect wait (at least the last one) be configurable? | ||||
| reconnectWaits = [0, 60, 300] | ||||
| 
 | ||||
| class SocketDriver(drivers.IrcDriver, drivers.ServersMixin): | ||||
|     def __init__(self, irc): | ||||
|         self.irc = irc | ||||
|  | ||||
| @ -103,6 +103,7 @@ def errorMsg(reason): | ||||
|     return reason.getErrorMessage() | ||||
| 
 | ||||
| class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin): | ||||
|     # XXX Shouldn't the maxDelay be configurable? | ||||
|     maxDelay = 300 | ||||
|     protocol = SupyIrcProtocol | ||||
|     def __init__(self, irc): | ||||
| @ -129,7 +130,8 @@ class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin): | ||||
|         protocol = ReconnectingClientFactory.buildProtocol(self, addr) | ||||
|         protocol.irc = self.irc | ||||
|         return protocol | ||||
|          | ||||
| 
 | ||||
| 
 | ||||
| Driver = SupyReconnectingFactory | ||||
| 
 | ||||
| try: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jeremy Fincher
						Jeremy Fincher