X-Git-Url: http://git.ieval.ro/?p=app-devbot.git;a=blobdiff_plain;f=lib%2FApp%2FDevbot.pm;fp=lib%2FApp%2FDevbot.pm;h=1ba7bd70229c9aea72421c26702b8ba13f54c013;hp=d7cd700b47482b3ff191e5b1ec4308356343b9ee;hb=837fdca974108189c6f6a3179e740d3be7ddf2f5;hpb=445eb54503fa217b3bd87272397ce1781ccaa843 diff --git a/lib/App/Devbot.pm b/lib/App/Devbot.pm index d7cd700..1ba7bd7 100644 --- a/lib/App/Devbot.pm +++ b/lib/App/Devbot.pm @@ -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(