~liberachat/beryllia

456799e65e57611e720f663de8c87d03fa95ecc4 — jesopo 3 months ago 31c521f
`args` is now a Sequence
1 files changed, 5 insertions(+), 2 deletions(-)

M beryllia/__init__.py
M beryllia/__init__.py => beryllia/__init__.py +5 -2
@@ 425,8 425,11 @@ class Server(BaseServer):

        return outs or ["no results"]

    async def cmd_statsp(self, caller: Caller, args: str):
        match = RE_DATE.search(args.strip() or "1970-01-01")
    async def cmd_statsp(self, caller: Caller, args: Sequence[str]) -> Sequence[str]:
        if not args:
            return ["please provide a date"]

        match = RE_DATE.search(args[0] or "1970-01-01")
        if match is None:
            return ["that's not a date"]