summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-15 16:21:45 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commit37fff1f7622c4c29b981d2612a03692befd115db (patch)
treebf985b45fdb28793eae7ba3440aaac959dd46f50 /src
parentcc35ac5be15a3b20fd02c2a5d4a499c41f9d6bc9 (diff)
commands/config: don't set pinboard_watch when no args are supplied
Diffstat (limited to 'src')
-rw-r--r--src/commands/general/config.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/commands/general/config.rs b/src/commands/general/config.rs
index 358ee69..bd16f0e 100644
--- a/src/commands/general/config.rs
+++ b/src/commands/general/config.rs
@@ -84,9 +84,7 @@ pub async fn set(
if let Some(watch) = pinboard_watch {
let channels = split_argument(&watch);
- debug!("Setting pinboard_watch to {channels:#?} for {gid}");
-
- settings.pinboard_watch = Some(channels);
+ settings.pinboard_watch = (!channels.is_empty()).then_some(channels);
}
if let Some(enabled) = pinboard_enabled {