From bfa9adce3851c39a462b9e666ad0e81f5294451e Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 10 Jun 2025 04:35:58 +0200 Subject: [PATCH] Fix erroneous use of EventType (why doesn't mypy complain about any of this?). --- ircplom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircplom.py b/ircplom.py index 19082f6..f85b62b 100755 --- a/ircplom.py +++ b/ircplom.py @@ -325,7 +325,7 @@ class IrcConnection: if event.type_ == EventType.SEND: self._write_line(msg.raw) elif event.type_ == EventType.RECV: - if msg.verb == EventType.PING: + if msg.verb == 'PING': self._broadcast(EventType.SEND, IrcMessage('PONG', [msg.parameters[0]])) elif msg.verb == 'ERROR'\ -- 2.30.2