Added doc string for terms_of_service_message

This commit is contained in:
sTiKyt 2020-06-09 07:28:53 +03:00
parent cba7e44caa
commit 0ca64ca553
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -75,6 +75,11 @@ def exit_message(port = 80): # Message when HiddenEye exit
return exit_message(port)
def terms_of_service_message():
"""Requests user to provide agreement to license provided.
Returns:
boolean: Always returns True, if user doesn't accept agreement - proceeds to exit()
"""
agreement = license_handler()
if not agreement:
print(localization.lang_terms_of_service_message["GPL_3.0"])