readme, some fixes

This commit is contained in:
2021-08-27 00:19:43 +02:00
parent 2b84e5eeb0
commit 957f0dbb3b
10 changed files with 118 additions and 59 deletions
+6
View File
@@ -82,7 +82,13 @@ async fn main() -> anyhow::Result<()> {
.await?;
if let Some(handle) = args.value_of("auth") {
let handle = handle.to_lowercase();
let acct = handle.trim_start_matches('@');
if store.group_exists(acct).await {
anyhow::bail!("Group already exists in config!");
}
if let Some(server) = acct_to_server(acct) {
let g = store
.auth_new_group(NewGroupOptions {