Skip to content

Commit

Permalink
v0.12.0 alpha release
Browse files Browse the repository at this point in the history
  • Loading branch information
JABirchall committed Nov 23, 2016
1 parent 013da8b commit c7c32e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/TeamSpeak3Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ private function loadPlugin($configFile)
'version' => $config['version'],
]);
}

$plugin = Plugin::where('name', $config['name'])->first();

if (version_compare($plugin->version, $config['version'], '<')) {
$this->plugins[$config['name']]->update($plugin->version);
$plugin->update(['version' => $config['version']]);
Expand Down

0 comments on commit c7c32e9

Please sign in to comment.