fix issue where help command crashes bot
This commit is contained in:
		
							parent
							
								
									0a66ed4fb8
								
							
						
					
					
						commit
						08a98febca
					
				| @ -154,7 +154,7 @@ class Bot(irc.bot.SingleServerIRCBot): | |||||||
|             c.quit("See y'all later!") |             c.quit("See y'all later!") | ||||||
|             quit() |             quit() | ||||||
|         elif cmd == '!help': |         elif cmd == '!help': | ||||||
|             helplist = sorted([i for i in self.cmds]) |             helplist = sorted([i for i in pinhook.plugin.cmds]) | ||||||
|             msg = ', '.join(helplist) |             msg = ', '.join(helplist) | ||||||
|             c.privmsg(chan, 'Available commands: {}'.format(msg)) |             c.privmsg(chan, 'Available commands: {}'.format(msg)) | ||||||
|         elif cmd == '!reload' and nick in self.ops: |         elif cmd == '!reload' and nick in self.ops: | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							| @ -72,7 +72,7 @@ class UploadCommand(Command): | |||||||
| # Where the magic happens: | # Where the magic happens: | ||||||
| setup( | setup( | ||||||
|     name=NAME, |     name=NAME, | ||||||
|     version='1.4.1', |     version='1.4.2', | ||||||
|     description=DESCRIPTION, |     description=DESCRIPTION, | ||||||
|     long_description=long_description, |     long_description=long_description, | ||||||
|     author=AUTHOR, |     author=AUTHOR, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user