if last sender is none we can fallback to root

This commit is contained in:
Florent 2025-04-29 11:03:07 +02:00
parent c126cb5281
commit b99c9425af
2 changed files with 2 additions and 2 deletions

View file

@ -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" },
]

View file

@ -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.")