From 0c4b7c4a75988dce77da6094c0d67657d46f411f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 20 Sep 2025 10:45:06 +0200 Subject: [PATCH] Treat not-implemented warning as alert, add test of it. --- ircplom/client.py | 2 +- test.txt | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ircplom/client.py b/ircplom/client.py index 947945c..fcdf520 100644 --- a/ircplom/client.py +++ b/ircplom/client.py @@ -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( diff --git a/test.txt b/test.txt index f515370..78f622d 100644 --- a/test.txt +++ b/test.txt @@ -192,6 +192,10 @@ 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 @@ -431,7 +435,7 @@ repeat 63:65 3,4,5,6,7 $ CONNECTED repeat 66:158 -repeat 167:364 +repeat 168:368 > /quit 0 < -- 2.30.2