home · contact · privacy
Fix mismatches on string param comparisons.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 21 Aug 2025 02:46:35 +0000 (04:46 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 21 Aug 2025 02:46:35 +0000 (04:46 +0200)
ircplom/client.py

index c32e75540d07cc709645235cda11b5c1130acc51..a018e6ee24d4813a3099afee53652e0dbe75d109 100644 (file)
@@ -805,6 +805,8 @@ class Client(ABC, ClientQueueMixin):
                         return None
                     to_return += [result]
                 return tuple(to_return)
+            if isinstance(ex_tok, str):
+                return msg_tok if msg_tok == ex_tok else None
             if ex_tok is _MsgTok.NONE:
                 return msg_tok if msg_tok == '' else None
             if ex_tok is _MsgTok.SERVER: