don't try to privmsg (and then crash) if replystr is None
This commit is contained in:
		
							parent
							
								
									2690c0208c
								
							
						
					
					
						commit
						914e86d567
					
				| @ -215,10 +215,11 @@ class Module(object): | ||||
|         return self.reply(connection, replypath, 'hello') | ||||
|         """ | ||||
| 
 | ||||
|         if replypath is None: | ||||
|             return replystr | ||||
|         else: | ||||
|             connection.privmsg(replypath, replystr) | ||||
|         if replystr is not None: | ||||
|             if replypath is None: | ||||
|                 return replystr | ||||
|             else: | ||||
|                 connection.privmsg(replypath, replystr) | ||||
| 
 | ||||
|     def try_recursion(self, connection, event, nick, userhost, replypath, what, admin_unlocked): | ||||
|         """ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user