fix for git version
This commit is contained in:
		
							
								
								
									
										11
									
								
								mumbleBot.py
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								mumbleBot.py
									
									
									
									
									
								
							| @@ -195,11 +195,12 @@ class MumbleBot: | ||||
|             th.start() | ||||
|  | ||||
|         last_startup_version = var.db.get("bot", "version", fallback=None) | ||||
|         if not last_startup_version or version.parse(last_startup_version) < version.parse(self.version): | ||||
|             var.db.set("bot", "version", self.version) | ||||
|             if var.config.getboolean("bot", "auto_check_update"): | ||||
|                 changelog = util.fetch_changelog() | ||||
|                 self.send_channel_msg(tr("update_successful", version=self.version, changelog=changelog)) | ||||
|         if self.version != "git": | ||||
|             if not last_startup_version or version.parse(last_startup_version) < version.parse(self.version): | ||||
|                 var.db.set("bot", "version", self.version) | ||||
|                 if var.config.getboolean("bot", "auto_check_update"): | ||||
|                     changelog = util.fetch_changelog() | ||||
|                     self.send_channel_msg(tr("update_successful", version=self.version, changelog=changelog)) | ||||
|  | ||||
|     # Set the CTRL+C shortcut | ||||
|     def ctrl_caught(self, signal, frame): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user