From 37fff1f7622c4c29b981d2612a03692befd115db Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 15 Dec 2023 16:21:45 -0500 Subject: commands/config: don't set pinboard_watch when no args are supplied --- src/commands/general/config.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/commands/general') 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 { -- cgit v1.2.3