mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-04 01:27:21 +01:00 
			
		
		
		
	Switch comments of callbacks.PluginRegexp's attributes to docstrings (for Sphinx).
This commit is contained in:
		
							parent
							
								
									566e841977
								
							
						
					
					
						commit
						f27484d2bb
					
				@ -1411,15 +1411,15 @@ class PluginRegexp(Plugin):
 | 
			
		||||
    the bot is addressed, or triggered only when the bot isn't addressed.
 | 
			
		||||
    """
 | 
			
		||||
    flags = re.I
 | 
			
		||||
    # 'regexps' methods are called whether the message is addressed or not.
 | 
			
		||||
    regexps = ()
 | 
			
		||||
    # 'addressedRegexps' methods are called only when the message is addressed,
 | 
			
		||||
    # and then, only with the payload (i.e., what is returned from the
 | 
			
		||||
    # 'addressed' function.
 | 
			
		||||
    """'regexps' methods are called whether the message is addressed or not."""
 | 
			
		||||
    addressedRegexps = ()
 | 
			
		||||
    # 'unaddressedRegexps' methods are called only when the message is *not*
 | 
			
		||||
    # addressed.
 | 
			
		||||
    """'addressedRegexps' methods are called only when the message is addressed,
 | 
			
		||||
    and then, only with the payload (i.e., what is returned from the
 | 
			
		||||
    'addressed' function."""
 | 
			
		||||
    unaddressedRegexps = ()
 | 
			
		||||
    """'unaddressedRegexps' methods are called only when the message is *not*
 | 
			
		||||
    addressed."""
 | 
			
		||||
    Proxy = SimpleProxy
 | 
			
		||||
    def __init__(self, irc):
 | 
			
		||||
        self.__parent = super(PluginRegexp, self)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user