mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-03 17:17:23 +01:00 
			
		
		
		
	Services: Properly register the NickServ.password group and child values.
Closes: Sf#3019174 Signed-off-by: James Vega <jamessan@users.sourceforge.net> (cherry picked from commit d78f7b6ac556293739f7334a56bd5b9f67742516) Signed-off-by: Daniel Folkinshteyn <nanotube@users.sourceforge.net>
This commit is contained in:
		
							parent
							
								
									be39fcdbc6
								
							
						
					
					
						commit
						16dbd8917a
					
				@ -1,5 +1,6 @@
 | 
			
		||||
###
 | 
			
		||||
# Copyright (c) 2005, Jeremiah Fincher
 | 
			
		||||
# Copyright (c) 2010, James Vega
 | 
			
		||||
# All rights reserved.
 | 
			
		||||
#
 | 
			
		||||
# Redistribution and use in source and binary forms, with or without
 | 
			
		||||
@ -33,7 +34,10 @@ import supybot.registry as registry
 | 
			
		||||
 | 
			
		||||
def registerNick(nick, password=''):
 | 
			
		||||
    p = conf.supybot.plugins.Services.Nickserv.get('password')
 | 
			
		||||
    v = p.register(nick, registry.String(password, '', private=True))
 | 
			
		||||
    h = 'Determines what password the bot will use with NickServ when ' \
 | 
			
		||||
        'identifying as %s.' % nick
 | 
			
		||||
    v = p.register(nick, registry.String(password, h, private=True))
 | 
			
		||||
    v.channelValue = False
 | 
			
		||||
    if password:
 | 
			
		||||
        v.setValue(password)
 | 
			
		||||
 | 
			
		||||
@ -82,9 +86,7 @@ conf.registerGlobalValue(Services, 'ghostDelay',
 | 
			
		||||
conf.registerGlobalValue(Services, 'NickServ',
 | 
			
		||||
    ValidNickOrEmptyString('', """Determines what nick the 'NickServ' service
 | 
			
		||||
    has."""))
 | 
			
		||||
conf.registerGroup(Services.NickServ, 'password',
 | 
			
		||||
    registry.String('', """Determines what password the bot will use with
 | 
			
		||||
    NickServ.""", private=True))
 | 
			
		||||
conf.registerGroup(Services.NickServ, 'password')
 | 
			
		||||
conf.registerGlobalValue(Services, 'ChanServ',
 | 
			
		||||
    ValidNickOrEmptyString('', """Determines what nick the 'ChanServ' service
 | 
			
		||||
    has."""))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user