mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
VERSION: remove parentheses around date in version check
This commit is contained in:
parent
a0dd5728a3
commit
5a2f57494b
@ -56,7 +56,7 @@ sub version_cmd {
|
|||||||
my ($version, $date) = $text =~ m/^\s+BUILD_REVISION => (\d+).*^\s+BUILD_DATE\s+=> "([^"]+)"/ms;
|
my ($version, $date) = $text =~ m/^\s+BUILD_REVISION => (\d+).*^\s+BUILD_DATE\s+=> "([^"]+)"/ms;
|
||||||
|
|
||||||
if ($version != BUILD_REVISION) {
|
if ($version != BUILD_REVISION) {
|
||||||
return "/say " . $self->version . "; new version available: $version ($date)!";
|
return "/say " . $self->version . "; new version available: $version $date!";
|
||||||
} else {
|
} else {
|
||||||
return "/say " . $self->version . "; you have the latest version.";
|
return "/say " . $self->version . "; you have the latest version.";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user