Skip to content

Commit

Permalink
quit events don't show channels
Browse files Browse the repository at this point in the history
  • Loading branch information
Chlorophytus committed Jun 20, 2024
1 parent 9a8f55a commit dba5a87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion chloresolve/chloresolve/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.4+rev46"
__version__ = "1.1.5+rev47"
4 changes: 1 addition & 3 deletions chloresolve/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dba5a87

Please sign in to comment.