Markov: bugfix in the anti-address chaining
This commit is contained in:
		
							parent
							
								
									b327bcab71
								
							
						
					
					
						commit
						bf850592df
					
				@ -433,7 +433,7 @@ class Markov(Module):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                        # if the first word is "foo:", start with the second
 | 
					                        # if the first word is "foo:", start with the second
 | 
				
			||||||
                        addressing_suffixes = [':', ',']
 | 
					                        addressing_suffixes = [':', ',']
 | 
				
			||||||
                        if gen_words[0][-1] in addressing_suffixes:
 | 
					                        if new_chain_words[0][-1] in addressing_suffixes:
 | 
				
			||||||
                            gen_words += new_chain_words[1:]
 | 
					                            gen_words += new_chain_words[1:]
 | 
				
			||||||
                            self.log.debug("appending following anti-address " \
 | 
					                            self.log.debug("appending following anti-address " \
 | 
				
			||||||
                                           "new_chain_words: {0:s}".format(new_chain_words[1:]))
 | 
					                                           "new_chain_words: {0:s}".format(new_chain_words[1:]))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user