home · contact · privacy
Treat not-implemented warning as alert, add test of it.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 20 Sep 2025 08:45:06 +0000 (10:45 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 20 Sep 2025 08:45:06 +0000 (10:45 +0200)
ircplom/client.py
test.txt

index 947945cbc216ba1fc64b074b7f4391884377b128..fcdf520db3d17090e5759c00388224a9cc95ee0d 100644 (file)
@@ -847,7 +847,7 @@ class Client(ABC, ClientQueueMixin):
                 ret = result
                 break
         if '_verb' not in ret:
-            self._log(f'PLEASE IMPLEMENT HANDLER FOR: {msg.raw}')
+            self._log(f'PLEASE IMPLEMENT HANDLER FOR: {msg.raw}', alert=True)
             return
         for n_u_h in ret['_nickuserhosts']:  # update, turn into proper users
             if (id_ := self.db.users.id_for_nickuserhost(
index f515370a23bc58bfb220a466e4c86ff3ee8864a9..78f622d5901bb6ad9691df1032dbb8cea8200ea7 100644 (file)
--- a/test.txt
+++ b/test.txt
 1 #   /window.raw VERB [PARAMS_STR]
 1 #   /window.reconnect
 
+# test lack of implementation
+0:2 < foo bar baz
+1,2 !$ PLEASE IMPLEMENT HANDLER FOR: foo bar baz
+
 # test recoverable 432
 > /nick @foo
 2 > NICK :@foo
 repeat 63:65
 3,4,5,6,7 $ CONNECTED
 repeat 66:158
-repeat 167:364
+repeat 168:368
 
 > /quit
 0 <