summaryrefslogtreecommitdiffstats
path: root/src/repl/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-12-03 17:58:27 +0800
committerGitHub <noreply@github.com>2024-12-03 17:58:27 +0800
commit46348dfb1d65e6077ebb6441dcfdeeca003c27cb (patch)
tree8ca4edada69e1efa3e9a2c293019fc32dfbbb647 /src/repl/mod.rs
parent6b6413b02df588faf6557053751b7e9c591539f7 (diff)
downloadaichat-46348dfb1d65e6077ebb6441dcfdeeca003c27cb.tar.gz
refactor: allow `.edit role` in empty session with role (#1031)
Diffstat (limited to 'src/repl/mod.rs')
-rw-r--r--src/repl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index 1dd068c..a8b172e 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -53,7 +53,7 @@ lazy_static::lazy_static! {
ReplCommand::new(
".edit role",
"Edit the current role",
- AssertState::TrueFalse(StateFlags::ROLE, StateFlags::SESSION_EMPTY | StateFlags::SESSION),
+ AssertState::TrueFalse(StateFlags::ROLE, StateFlags::SESSION),
),
ReplCommand::new(
".save role",