From dba5a8703a0b22bb1cfb1cf128f78c2dfdce120d Mon Sep 17 00:00:00 2001 From: Roland Metivier Date: Thu, 20 Jun 2024 15:16:11 -0500 Subject: [PATCH] quit events don't show channels --- CMakeLists.txt | 2 +- chloresolve/chloresolve/__init__.py | 2 +- chloresolve/main.py | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b0363c..622d163 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.25) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Project instantiation -project(chlorobot VERSION 1.1.4.51) +project(chlorobot VERSION 1.1.5.51) # Fetch gRPC option(USE_SYSTEM_GRPC "Use system installed gRPC" ON) diff --git a/chloresolve/chloresolve/__init__.py b/chloresolve/chloresolve/__init__.py index 4a3512b..9e7867d 100644 --- a/chloresolve/chloresolve/__init__.py +++ b/chloresolve/chloresolve/__init__.py @@ -1 +1 @@ -__version__ = "1.1.4+rev46" +__version__ = "1.1.5+rev47" diff --git a/chloresolve/main.py b/chloresolve/main.py index 254ee54..d39df2a 100644 --- a/chloresolve/main.py +++ b/chloresolve/main.py @@ -138,16 +138,14 @@ async def listen(self) -> None: # gRPC endpoint does bytes [b_nickname, b_ident_cloak] = message.prefix.split(b"!", 1) [b_ident, b_cloak] = b_ident_cloak.split(b"@", 1) - b_channel = message.parameters[0] # Decode them all nickname: str = b_nickname.decode("utf-8") - channel: str = b_channel.decode("utf-8") reason: str = message.trailing_parameter.decode( "utf-8", errors="ignore" ) - self.logger.info(f"[{channel}] {nickname} quits ({reason})") + self.logger.info(f"{nickname} quits ({reason})") case b"KICK": # gRPC endpoint does bytes [b_nickname, b_ident_cloak] = message.prefix.split(b"!", 1)