]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/hex2ip.pl
avoid reassigning to temp upon decode_utf8
[infobot.git] / src / Modules / hex2ip.pl
index 6ac4585429800cb6e93f7f9ad0c11669161b7a78..74a8d18448f3350208dec7559514aebdea8f37d9 100644 (file)
@@ -26,17 +26,18 @@ sub hex2ip::convert {
         push @conv, hex($3);
         push @conv, hex($4);
 
-        $result = uc "$hexstr = " . join(".", @conv);
-    } else {
+        $result = uc "$hexstr = " . join( ".", @conv );
+    }
+    else {
         $result = "Invalid string: $hexstr";
     }
 
-       return($result);
+    return ($result);
 }
 
 sub hex2ip::query {
-       &::performStrictReply(&convert(@_));
-       return;
+    &::performStrictReply( &convert(@_) );
+    return;
 }
 
 1;