From: Marius Gavrilescu Date: Mon, 30 Jun 2014 17:07:21 +0000 (+0300) Subject: Change block ifs to statement modifier ifs X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=837fdca974108189c6f6a3179e740d3be7ddf2f5;p=app-devbot.git Change block ifs to statement modifier ifs --- 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(