diff options
| author | 2012-02-27 03:32:36 +0000 | |
|---|---|---|
| committer | 2012-02-27 03:32:36 +0000 | |
| commit | 96af81a5dcad4b4f8bba8cd5246e4b0f7e7e960a (patch) | |
| tree | 3748fbe4e15e8422374acb9d9e4aaa14390dfce1 /meta.pl | |
| parent | facb092fc79d0fffea96e48581c2e32e07d7443e (diff) | |
Fixed a bug where the arguments to --pass and --config were considered optional (thanks mauke)
Diffstat (limited to 'meta.pl')
| -rwxr-xr-x | meta.pl | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -1,12 +1,10 @@ #!/usr/bin/perl -w use lib '/home/icxcnika/AntiSpamMeta'; -#use Devel::Profiler -# package_filter => sub { -# my $pkg = shift; -# return 0 if $pkg =~ /^XML::Simple/; -# return 1; -# }; + +#use Devel::Profiler package_filter => sub { return 0 if $_[0] =~ /^XML::Simple/; return 1; }; + + use warnings; use strict; use Net::IRC; @@ -36,8 +34,8 @@ sub init { my ( $conn, $host ); my $irc = new Net::IRC; GetOptions( 'debug|d!' => \$::debug, - 'pass|p:s' => \$::pass, - 'config|c:s' => \$::cset + 'pass|p=s' => \$::pass, + 'config|c=s' => \$::cset ); if ($::cset eq '') { $::cset = 'config-default'; |
