From 837fdca974108189c6f6a3179e740d3be7ddf2f5 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 30 Jun 2014 20:07:21 +0300 Subject: [PATCH] Change block ifs to statement modifier ifs --- lib/App/Devbot.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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( -- 2.39.2