From 67f479877cbc8cf2128b1c9ca2da63eeecb8a0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Sch=C3=B6n?= <js@opera.com> Date: Mon, 11 Oct 1999 10:17:04 +0200 Subject: [PATCH] Removed debug code Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike:1.2 --- .../Protocols.pmod/LysKOM.pmod/Threads.pike | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike b/lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike index 7bd1b73bd1..99a91ed657 100644 --- a/lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike +++ b/lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike @@ -19,6 +19,7 @@ class Thread array(mapping) flatten(int depth) { +// werror("%d, ",text->no); return ({ ([ "no": (string)text->no, "author_no": (string)text->author->name, "author_name":text->author->name, @@ -33,12 +34,8 @@ class Thread { foreach(text->misc->comm_to, Session.Text _parent) { - if(!_parent->misc) - { - werror("Parent %d. Error: %O\n",_parent->no, - _parent->error && _parent->error->name); + if(catch(_parent->misc)) continue; - } foreach( ({ @_parent->misc->recpt->conf, @_parent->misc->ccrecpt->conf, @_parent->misc->bccrecpt->conf }), @@ -56,12 +53,8 @@ class Thread { foreach(text->misc->comm_in, Session.Text child) { - if(!child->misc) - { - werror("Child %d. Error: %O\n",child->no, - child->error && child->error->name); + if(catch(child->misc)) continue; - } foreach( ({ @child->misc->recpt->conf, @child->misc->ccrecpt->conf, @child->misc->bccrecpt->conf }), @@ -93,6 +86,8 @@ class Thread parent=possible_parent(follow); children=possible_children(follow); + // werror("Parent to %d: %d\n",_text->no, parent && parent->text->no); + // werror("Children to %d: %s\n",_text->no, ((array(string))(children->text->no))*", "); } } -- GitLab