summaryrefslogtreecommitdiff
path: root/src/account.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/account.c')
-rw-r--r--src/account.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/account.c b/src/account.c
index 7b32890..f870e2f 100644
--- a/src/account.c
+++ b/src/account.c
@@ -493,6 +493,12 @@ uint32_t account_pubint(const struct account *acc)
}
+enum answermode account_answermode(const struct account *acc)
+{
+ return acc ? acc->answermode : ANSWERMODE_MANUAL;
+}
+
+
static const char *answermode_str(enum answermode mode)
{
switch (mode) {