home · contact · privacy
Fix erroneous use of EventType (why doesn't mypy complain about any of this?).
authorChristian Heller <c.heller@plomlompom.de>
Tue, 10 Jun 2025 02:35:58 +0000 (04:35 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 10 Jun 2025 02:35:58 +0000 (04:35 +0200)
ircplom.py

index 19082f63a599ad89f12b7fffab564ce7107a9715..f85b62be1dbc2ae80f8e6226b2219a0edc6ab4a8 100755 (executable)
@@ -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'\