From: Ian Jackson Date: Wed, 18 Nov 2020 20:51:46 +0000 (+0000) Subject: cli: use access_game in library-add X-Git-Tag: otter-0.2.0~479 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a17be13eded528dfda4a19a30ac285462522075b;p=otter.git cli: use access_game in library-add This reverts commit e212270ec6423f2c11574d70cac0f09ec3873c70. --- diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 0c947ff7..fa482523 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -837,11 +837,7 @@ mod library_add { const MAGIC : &str = "mgmt-library-load-marker"; let args = parse_args::(args, &subargs, &ok_id, None); - let mut chan = ConnForGame { - conn: access_account(&ma)?, - game: ma.instance_name(&args.table_name), - how: MgmtGameUpdateMode::Online, - }; + let mut chan = access_game(&ma, &args.table_name)?; let pieces = chan.get_pieces()?; let markers = pieces.iter().filter(|p| p.itemname == MAGIC) .collect::>();