mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	classes: remove irc.botdata (#422)
This commit is contained in:
		
							parent
							
								
									2e3317ce07
								
							
						
					
					
						commit
						3bea214cb0
					
				@ -231,7 +231,7 @@ class PyLinkNetworkCore(structures.CamelCaseToSnakeCase):
 | 
			
		||||
        self.conf = conf.conf
 | 
			
		||||
        self.sid = None
 | 
			
		||||
        self.serverdata = conf.conf['servers'][netname]
 | 
			
		||||
        self.botdata = conf.conf['pylink']
 | 
			
		||||
 | 
			
		||||
        self.protoname = self.__class__.__module__.split('.')[-1]  # Remove leading pylinkirc.protocols.
 | 
			
		||||
        self.proto = self.irc = self  # Backwards compat
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -115,7 +115,7 @@ def rehash():
 | 
			
		||||
            # XXX: we should really just add abstraction to Irc to update config settings...
 | 
			
		||||
            ircobj.conf = new_conf
 | 
			
		||||
            ircobj.serverdata = new_conf['servers'][network]
 | 
			
		||||
            ircobj.botdata = new_conf['bot']
 | 
			
		||||
 | 
			
		||||
            ircobj.autoconnect_active_multiplier = 1
 | 
			
		||||
 | 
			
		||||
            # Clear the IRC object's channel loggers and replace them with
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user