mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	automode: bandaid fix for "service already registered" errors on first load
(cherry picked from commit e2a853c98ed5487344149ecf611e2171d9e1bf68)
This commit is contained in:
		
							parent
							
								
									b376aba591
								
							
						
					
					
						commit
						3b62d0af3e
					
				@ -13,7 +13,7 @@ mydesc = ("The \x02Automode\x02 plugin provides simple channel ACL management by
 | 
			
		||||
          "to users matching hostmasks or exttargets.")
 | 
			
		||||
 | 
			
		||||
# Register ourselves as a service.
 | 
			
		||||
modebot = utils.registerService("automode", desc=mydesc)
 | 
			
		||||
modebot = world.services.get("automode", utils.registerService("automode", desc=mydesc))
 | 
			
		||||
reply = modebot.reply
 | 
			
		||||
 | 
			
		||||
# Databasing variables.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user