X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApp%2FDevbot.pm;h=b1c1b2478c31d0525e05bb57498ba6b68b45e5ec;hb=HEAD;hp=d7cd700b47482b3ff191e5b1ec4308356343b9ee;hpb=445eb54503fa217b3bd87272397ce1781ccaa843;p=app-devbot.git diff --git a/lib/App/Devbot.pm b/lib/App/Devbot.pm index d7cd700..b1c1b24 100644 --- a/lib/App/Devbot.pm +++ b/lib/App/Devbot.pm @@ -3,7 +3,7 @@ package App::Devbot; use v5.14; use strict; use warnings; -our $VERSION = 0.001003; +our $VERSION = 0.001004; use POE; use POE::Component::IRC::State; @@ -72,12 +72,8 @@ sub bot_start{ Retry_when_banned => 60, )); - if ($server =~ /^($RE{net}{domain})$/) { - $server = $1; - } - if ($port =~ /^([0-9]+)$/) { - $port = $1; - } + $server = $1 if $server =~ /^($RE{net}{domain})$/; + $port = $1 if $port =~ /^([0-9]+)$/; $irc->yield(register => "all"); $irc->yield(