Created a protection, when log is empty and trying to send /history
and indented and formatted NetClient code