mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Removed Irssi::require_version(), we'll use "use Irssi 20011207;" style now.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2217 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a09075938f
commit
0f29e57c14
@ -436,13 +436,6 @@ CODE:
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
void
|
||||
require_version(date)
|
||||
int date
|
||||
CODE:
|
||||
if (date > atol(IRSSI_VERSION_DATE))
|
||||
die("This script requires irssi version %d or later", date);
|
||||
|
||||
#*******************************
|
||||
MODULE = Irssi::Core PACKAGE = Irssi::Server
|
||||
#*******************************
|
||||
|
@ -7,6 +7,12 @@ package Irssi;
|
||||
use strict;
|
||||
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
|
||||
|
||||
sub VERSION {
|
||||
my $version = $_[1];
|
||||
die "This script requires irssi version $version or later"
|
||||
if ($version > version());
|
||||
}
|
||||
|
||||
$VERSION = "0.9";
|
||||
|
||||
require Exporter;
|
||||
|
Loading…
Reference in New Issue
Block a user