From b99c9425afeb7828fae1ac15549cdcc0f4f92431 Mon Sep 17 00:00:00 2001 From: Florent Date: Tue, 29 Apr 2025 11:03:07 +0200 Subject: [PATCH] if last sender is none we can fallback to root --- pyproject.toml | 2 +- src/meshcore_cli/meshcore_cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c92ac44..f00c9d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore-cli" -version = "0.7.333" +version = "0.7.3" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, ] diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index f219178..50061ef 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -471,7 +471,7 @@ Line starting with \"$\" or \".\" will issue a meshcli command. contact = pc elif dest == "~" or dest == "/" or dest == mc.self_info['name']: contact = None - elif dest == "!" and not process_event_message.last_node is None: + elif dest == "!" : contact = process_event_message.last_node else : print(f"Contact '{dest}' not found in contacts.")