From: Christian Heller Date: Tue, 10 Jun 2025 02:35:58 +0000 (+0200) Subject: Fix erroneous use of EventType (why doesn't mypy complain about any of this?). X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/calendar?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=ircplom Fix erroneous use of EventType (why doesn't mypy complain about any of this?). --- 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'\