diff --git a/.bumpversion.toml b/.bumpversion.toml index 08caebd..5a6d72e 100644 --- a/.bumpversion.toml +++ b/.bumpversion.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "1.0.0+261028" +current_version = "1.0.1+261028" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)\\+(?P\\d+)" serialize = ["{major}.{minor}.{patch}+{build}"] search = "{current_version}" diff --git a/pyproject.toml b/pyproject.toml index bbf252f..d7c29b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mumblermapi" -version = "1.0.0+261028" +version = "1.0.1+261028" description = "Murmur (Mumble server) integration for the OpenDefence platform" license = { text = "GPL-2.0-only" } readme = "README.md" diff --git a/src/mumblermapi/__init__.py b/src/mumblermapi/__init__.py index f05b4fc..5a2a4dc 100644 --- a/src/mumblermapi/__init__.py +++ b/src/mumblermapi/__init__.py @@ -1,3 +1,3 @@ """Murmur integration for the OpenDefence platform""" -__version__ = "1.0.0+261028" +__version__ = "1.0.1+261028" diff --git a/src/mumblermapi/enforce.py b/src/mumblermapi/enforce.py index e4ce059..4cd3dc2 100644 --- a/src/mumblermapi/enforce.py +++ b/src/mumblermapi/enforce.py @@ -171,8 +171,9 @@ def refused(policy: Policy, sessions: Iterable[Session]) -> tuple[int, ...]: def shadows(channels: list[ExistingChannel], missions_root: int) -> dict[int, int]: """Temporary channels outside Missions/ named like a mission net, mapped to that net. - XVoice creates a temporary channel named after the mission when it finds no net by that name, and it finds - nets by name alone, so such a channel would be an ungated copy of the mission's net. + A client that finds nets by name alone may create a temporary channel named after a mission net it cannot + find, as XVoice, which ODVoice is built from, did. Such a channel would be an ungated copy of the mission's + net. """ parents = {c.id: c.parent for c in channels} nets = {c.name: c.id for c in channels if c.parent == missions_root} @@ -206,7 +207,7 @@ def violations( Murmur checks ACLs only when someone enters or starts listening, and routes audio to listeners without checking again, so whoever lost access since has to be removed here. Sessions in a shadowing channel go to - the real net when it admits them, which XVoice takes as the net it wanted, and to the root otherwise. + the real net when it admits them, which such a client takes as the net it wanted, and to the root otherwise. """ shadowed = shadowed or {} callsigns = {s.session: callsign_of(s.name) for s in sessions} diff --git a/src/mumblermapi/identity.py b/src/mumblermapi/identity.py index 2342c09..335285a 100644 --- a/src/mumblermapi/identity.py +++ b/src/mumblermapi/identity.py @@ -11,7 +11,7 @@ from cryptography.x509.oid import NameOID from cryptography.x509.verification import Criticality, ExtensionPolicy, PolicyBuilder, Store, VerificationError -# Vx and XVoice connect as "---", with spaces in the callsign replaced by "_". +# ODVoice (built from XVoice) and Vx connect as "---", with spaces in the callsign replaced by "_". SLOT_SEPARATOR = "---" _SLOT_RE = re.compile(r"^[A-Za-z0-9_-]{1,64}$") diff --git a/tests/test_agent.py b/tests/test_agent.py index 9aefd50..4926efa 100644 --- a/tests/test_agent.py +++ b/tests/test_agent.py @@ -34,7 +34,7 @@ def ids_fixture(tmp_path: Path) -> UserIds: def murmur() -> FakeServer: - """A server with a stale unit net, XVoice's stand-in for the RECON mission net, and four users""" + """A server with a stale unit net, a client's stand-in for the RECON mission net, and four users""" server = FakeServer() server.channel(1, 0, "Units") server.channel(2, 1, "20") @@ -60,7 +60,7 @@ def test_enforce_pass(ids: UserIds) -> None: # Guard is a mission net open to everyone: no rules of its own, and nobody is moved out of it guard = server.id_of("/Missions/Guard") assert acl_of(*server.getACL(guard)) == OPEN - # The subscriber goes from XVoice's stand-in to the real net, the outsider to the root + # The subscriber goes from the stand-in to the real net, the outsider to the root assert server.users[2].channel == mission and server.users[4].channel == 0 server.users[4].channel = platoon # entered before the net was restricted diff --git a/tests/test_enforce.py b/tests/test_enforce.py index de5205d..f3e0c66 100644 --- a/tests/test_enforce.py +++ b/tests/test_enforce.py @@ -110,7 +110,7 @@ def test_mission_shadows() -> None: *CHANNELS, ExistingChannel(8, 0, "Missions"), ExistingChannel(9, 8, "RECON"), - ExistingChannel(10, 0, "RECON", temporary=True), # XVoice's stand-in + ExistingChannel(10, 0, "RECON", temporary=True), # a client's stand-in ExistingChannel(11, 9, "RECON", temporary=True), # inside the gated net: fine ExistingChannel(12, 0, "OTHER", temporary=True), ] diff --git a/tests/test_identity.py b/tests/test_identity.py index 6ae29ee..ee5f1c5 100644 --- a/tests/test_identity.py +++ b/tests/test_identity.py @@ -20,7 +20,7 @@ ], ) def test_parse_username(raw: str, expected: Username) -> None: - """Vx/XVoice usernames and bare callsigns parse""" + """ODVoice/Vx usernames and bare callsigns parse""" assert parse_username(raw) == expected diff --git a/uv.lock b/uv.lock index c84e6f5..24d089a 100644 --- a/uv.lock +++ b/uv.lock @@ -964,7 +964,7 @@ wheels = [ [[package]] name = "mumblermapi" -version = "1.0.0+261028" +version = "1.0.1+261028" source = { editable = "." } dependencies = [ { name = "aiohttp" },