diff --git a/PBot/NewModule.pm b/PBot/NewModule.pm deleted file mode 100644 index af6cc75f..00000000 --- a/PBot/NewModule.pm +++ /dev/null @@ -1,43 +0,0 @@ -# File: NewModule.pm -# Author: pragma_ -# -# Purpose: New module skeleton - -package PBot::NewModule; - -use warnings; -use strict; - -use vars qw($VERSION); -$VERSION = $PBot::PBot::VERSION; - -use Carp (); - -sub new { - if(ref($_[1]) eq 'HASH') { - Carp::croak("Options to Logger should be key/value pairs, not hash reference"); - } - - my ($class, %conf) = @_; - - my $self = bless {}, $class; - $self->initialize(%conf); - return $self; -} - -sub initialize { - my ($self, %conf) = @_; - - my $option = delete $conf{option}; - $option = 10 unless defined $option; # set to default value unless defined - - if(defined $option) { - # do something (optional) - } - - $self->{option} = $option; -} - -# subs here - -1; diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index afa919c6..31ba8da3 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,7 +13,7 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 141, + BUILD_REVISION => 142, BUILD_DATE => "2010-06-04", };