Skip to content
Snippets Groups Projects
Commit 67f47987 authored by Johan Schön's avatar Johan Schön
Browse files

Removed debug code

Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Threads.pike:1.2
parent 925d91ee
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ class Thread ...@@ -19,6 +19,7 @@ class Thread
array(mapping) flatten(int depth) array(mapping) flatten(int depth)
{ {
// werror("%d, ",text->no);
return ({ ([ "no": (string)text->no, return ({ ([ "no": (string)text->no,
"author_no": (string)text->author->name, "author_no": (string)text->author->name,
"author_name":text->author->name, "author_name":text->author->name,
...@@ -33,12 +34,8 @@ class Thread ...@@ -33,12 +34,8 @@ class Thread
{ {
foreach(text->misc->comm_to, Session.Text _parent) foreach(text->misc->comm_to, Session.Text _parent)
{ {
if(!_parent->misc) if(catch(_parent->misc))
{
werror("Parent %d. Error: %O\n",_parent->no,
_parent->error && _parent->error->name);
continue; continue;
}
foreach( ({ @_parent->misc->recpt->conf, foreach( ({ @_parent->misc->recpt->conf,
@_parent->misc->ccrecpt->conf, @_parent->misc->ccrecpt->conf,
@_parent->misc->bccrecpt->conf }), @_parent->misc->bccrecpt->conf }),
...@@ -56,12 +53,8 @@ class Thread ...@@ -56,12 +53,8 @@ class Thread
{ {
foreach(text->misc->comm_in, Session.Text child) foreach(text->misc->comm_in, Session.Text child)
{ {
if(!child->misc) if(catch(child->misc))
{
werror("Child %d. Error: %O\n",child->no,
child->error && child->error->name);
continue; continue;
}
foreach( ({ @child->misc->recpt->conf, foreach( ({ @child->misc->recpt->conf,
@child->misc->ccrecpt->conf, @child->misc->ccrecpt->conf,
@child->misc->bccrecpt->conf }), @child->misc->bccrecpt->conf }),
...@@ -93,6 +86,8 @@ class Thread ...@@ -93,6 +86,8 @@ class Thread
parent=possible_parent(follow); parent=possible_parent(follow);
children=possible_children(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))*", ");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment