From ee73435c3850ca000351ccc329ce6ea85fb3bfa3 Mon Sep 17 00:00:00 2001 From: Anna Puddles <113144806+annapuddles@users.noreply.github.com> Date: Sat, 14 Jan 2023 01:40:11 -0500 Subject: [PATCH] Add version number --- prim-dns.lsl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/prim-dns.lsl b/prim-dns.lsl index d8aced4..33e0db6 100644 --- a/prim-dns.lsl +++ b/prim-dns.lsl @@ -1,3 +1,6 @@ +/* The version of prim-dns. */ +string version = "1.0.0"; + /* The URL of the prim-dns webservice. */ string prim_dns_api = "https://annapuddles.com/prim-dns/alias"; @@ -244,7 +247,7 @@ state off llListenRemove(dialog_listener); dialog_listener = llListen(dialog_channel, "", toucher, ""); - llDialog(toucher, "What would you like to do?", ["power on", "cancel"], dialog_channel); + llDialog(toucher, "prim-dns v" + version, ["power on", "cancel"], dialog_channel); } listen(integer channel, string name, key id, string message) @@ -368,7 +371,7 @@ state startup llListenRemove(dialog_listener); dialog_listener = llListen(dialog_channel, "", toucher, ""); - llDialog(toucher, "What would you like to do?", ["reboot", "shutdown", "cancel"], dialog_channel); + llDialog(toucher, "prim-dns v" + version, ["reboot", "shutdown", "cancel"], dialog_channel); } /* Handle the response from the options menu. */ @@ -513,7 +516,7 @@ state request_url llListenRemove(dialog_listener); dialog_listener = llListen(dialog_channel, "", toucher, ""); - llDialog(toucher, "What would you like to do?", ["reboot", "shutdown", "cancel"], dialog_channel); + llDialog(toucher, "prim-dns v" + version, ["reboot", "shutdown", "cancel"], dialog_channel); } /* Handle the response from the options menu. */ @@ -660,7 +663,7 @@ state main llListenRemove(dialog_listener); dialog_listener = llListen(dialog_channel, "", toucher, ""); - llDialog(toucher, "What would you like to do?", ["reboot", "shutdown", "cancel"], dialog_channel); + llDialog(toucher, "prim-dns v" + version, ["reboot", "shutdown", "cancel"], dialog_channel); } /* Handle the response from the options menu. */