summaryrefslogtreecommitdiff
path: root/web/web_prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/web_prompt.c')
-rw-r--r--web/web_prompt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/web_prompt.c b/web/web_prompt.c
index 9213ca0..c9e4f55 100644
--- a/web/web_prompt.c
+++ b/web/web_prompt.c
@@ -138,7 +138,7 @@ void set_prompt_mode(enum prompt_mode mode)
"visible", ".keypad");
}
-void prompt_visit()
+void prompt_user_visit()
{
set_prompt_mode(PM_VISIT);
prompt_set_msgl("Enter points:");
@@ -148,10 +148,13 @@ void prompt_visit()
dom_set_content("#key-rem", "REMAINING");
}
-void prompt_bot_visit()
+void prompt_comp_visit()
{
set_prompt_mode(PM_DARTBOARD);
- prompt_set_msgl("Computer is throwing…");
+
+ char buf[64];
+ sprintf(buf, "%s is throwing…", state_active_leg()->name);
+ prompt_set_msgl(buf);
prompt_set_msgr(NULL);
}