From 437ad88248bb2f64d6b306d97f1e9396febf7397 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 19 Jan 2020 20:10:46 -0800 Subject: [PATCH] VERSION: update header --- PBot/VERSION.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 2d474354..17d31368 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -1,7 +1,8 @@ # File: VERSION.pm # Author: pragma_ # -# Purpose: Keeps track of bot version. +# Purpose: Keeps track of bot version. Can compare current version against +# latest version on github or version.check_url site. # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this @@ -32,10 +33,8 @@ use constant { sub new { my ($class, %conf) = @_; my $self = bless {}, $class; - $self->{pbot} = delete $conf{pbot} // Carp::croak("Missing pbot reference to " . __FILE__); - + $self->{pbot} = $conf{pbot} // Carp::croak("Missing pbot reference to " . __FILE__); $self->{pbot}->{commands}->register(sub { $self->version_cmd(@_) }, "version", 0); - return $self; }