mod/ipcalc: use $PrettyPrint

This commit is contained in:
Christian Hesse 2022-07-05 12:42:21 +02:00
parent 150feac400
commit 597277dbe7

View file

@ -11,15 +11,16 @@
:local Input [ :tostr $1 ]; :local Input [ :tostr $1 ];
:global IPCalcReturn; :global IPCalcReturn;
:global PrettyPrint;
:local Values [ $IPCalcReturn $1 ]; :local Values [ $IPCalcReturn $1 ];
:put ( \ $PrettyPrint ( \
"Address: " . $Values->"address" . "\n\r" . \ "Address: " . $Values->"address" . "\n" . \
"Netmask: " . $Values->"netmask" . "\n\r" . \ "Netmask: " . $Values->"netmask" . "\n" . \
"Network: " . $Values->"network" . "\n\r" . \ "Network: " . $Values->"network" . "\n" . \
"HostMin: " . $Values->"hostmin" . "\n\r" . \ "HostMin: " . $Values->"hostmin" . "\n" . \
"HostMax: " . $Values->"hostmax" . "\n\r" . \ "HostMax: " . $Values->"hostmax" . "\n" . \
"Broadcast: " . $Values->"broadcast"); "Broadcast: " . $Values->"broadcast");
} }