6 # Copyright (c) 2005 Dirk Koopman G1TLH
13 use vars qw($VERSION $BRANCH);
15 main::mkver($VERSION = q$Revision$);
21 use Thingy::RouteFilter;
24 @ISA = qw(Thingy Thingy::RouteFilter);
29 unless ($thing->{Aranea}) {
30 $thing->{Aranea} = Aranea::genmsg($thing, [qw(s auth)]);
32 return $thing->{Aranea};
40 # fix the interface routing
41 my $intcall = $thing->{user} || $thing->{origin};
42 if ($dxchan->{call} eq $thing->{origin} && !$thing->{user}) {
43 RouteDB::delete_interface($intcall);
45 RouteDB::delete($intcall, $dxchan->{call});
50 if (my $user = $thing->{user}) {
51 my $parent = Route::Node::get($thing->{origin});
52 my $uref = Route::get($user);
53 if ($parent && $uref) {
54 if ($uref->isa('Route::Node')) {
55 @pc21 = $parent->del($uref);
57 $parent->del_user($uref);
58 $thing->{pc17n} = $thing->{origin};
59 $thing->{pc17u} = $user;
63 my $parent = Route::get($thing->{origin});
64 @pc21 = $parent->del_nodes if $parent;
67 $thing->{pc21n} = \@pc21 if @pc21;
69 $thing->broadcast($dxchan);