summaryrefslogtreecommitdiffstats
path: root/src/repl
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-10-30 12:58:11 +0800
committerGitHub <noreply@github.com>2023-10-30 12:58:11 +0800
commit2f9121e515150981ac061389656c33eea577c336 (patch)
treed213322b1cff8e1ba94988d6590ead6e4335ff94 /src/repl
parentf2c9f00bda1e69306bb2b73843ed7a95cd703bb5 (diff)
downloadaichat-2f9121e515150981ac061389656c33eea577c336.tar.gz
fix: bugs between sesison/role (#178)
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/handler.rs2
-rw-r--r--src/repl/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/repl/handler.rs b/src/repl/handler.rs
index ff6cf56..e726661 100644
--- a/src/repl/handler.rs
+++ b/src/repl/handler.rs
@@ -71,7 +71,7 @@ impl ReplCmdHandler {
print_now!("\n");
}
ReplCmd::SetRole(name) => {
- let output = self.config.write().change_role(&name)?;
+ let output = self.config.write().set_role(&name)?;
print_now!("{}\n\n", output.trim_end());
}
ReplCmd::ClearRole => {
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index 46d0cca..a6f173a 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -160,7 +160,7 @@ impl Repl {
}
fn dump_unknown_command() {
- print_now!("Error: Unknown command. Type \".help\" for more information.\n\n");
+ print_now!("Unknown command. Type \".help\" for more information.\n\n");
}
fn dump_repl_help() {