From: minima Date: Sat, 19 Feb 2005 02:53:28 +0000 (+0000) Subject: make things appear X-Git-Tag: R_1_52~187 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b045cd59e152bf125fb32d3c28cc49cf659b8a4d;p=spider.git make things appear --- diff --git a/perl/Aranea.pm b/perl/Aranea.pm index 52c622b0..7f0134c3 100644 --- a/perl/Aranea.pm +++ b/perl/Aranea.pm @@ -326,15 +326,17 @@ sub input $thing->{user} = $user if $user; $thing->{hopsaway} = $hop; - for (split(/,/, $rdata)) { - if (/=/) { - my ($k,$v) = split /=/, $_, 2; - $thing->{$k} = tdecode($v); - } else { - $thing->{$_} = 1; + if ($rdata) { + for (split(/,/, $rdata)) { + if (/=/) { + my ($k,$v) = split /=/, $_, 2; + $thing->{$k} = tdecode($v); + } else { + $thing->{$_} = 1; + } } } - + # post process the thing, this generally adds on semantic meaning # does parameter checking etc. It also adds / prepares the thingy so # this is compatible with older protocol and arranges data so diff --git a/perl/Thingy/Rt.pm b/perl/Thingy/Rt.pm index 69cf3ca2..7f407235 100644 --- a/perl/Thingy/Rt.pm +++ b/perl/Thingy/Rt.pm @@ -30,7 +30,7 @@ sub gen_Aranea my @items; push @items, 't', $thing->{t} if $thing->{t}; push @items, 'd', $thing->{d} if $thing->{d}; - $thing->{Aranea} = Aranea::genmsg($thing, 'RT'); + $thing->{Aranea} = Aranea::genmsg($thing, 'RT', @items) if @items; } return $thing->{Aranea}; }