Skip to content

Commit 057051c

Browse files
committed
take into account * scope
1 parent 5a5f973 commit 057051c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "meshcore"
7-
version = "2.1.20"
7+
version = "2.1.21"
88
authors = [
99
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
1010
{ name="Alex Wolden", email="awolden@gmail.com" },

src/meshcore/commands/messaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async def set_flood_scope(self, scope):
216216
if scope.startswith("#"): # an hash
217217
logger.debug(f"Setting scope from hash {scope}")
218218
scope_key = sha256(scope.encode("utf-8")).digest()[0:16]
219-
elif scope == "0" or scope == "None": # disable
219+
elif scope == "0" or scope == "None" or scope == "*" or scope == "": # disable
220220
scope_key = b"\0"*16
221221
else: # assume the key has been sent directly
222222
scope_key = scope.encode("utf-8")

0 commit comments

Comments
 (0)