projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
aff3466
)
get rcmd text largely working.
author
minima
<minima>
Mon, 23 Jan 2006 23:15:38 +0000
(23:15 +0000)
committer
minima
<minima>
Mon, 23 Jan 2006 23:15:38 +0000
(23:15 +0000)
perl/DXXml/Text.pm
patch
|
blob
|
history
diff --git
a/perl/DXXml/Text.pm
b/perl/DXXml/Text.pm
index 35c83191e504fe8a5909e77ad6bb433012c3d60f..a08cbda0ded9623ec17ac12095956f786a61e868 100644
(file)
--- a/
perl/DXXml/Text.pm
+++ b/
perl/DXXml/Text.pm
@@
-29,13
+29,17
@@
sub handle_input
my $self = shift;
my $dxchan = shift;
my $self = shift;
my $dxchan = shift;
- # this is always routed
- if ($self->{to} eq $main::mycall ) {
- my $r = DXChannel::get($main::myalias);
- $dxchan = $r if $r;
+ if ($self->{to} eq $main::mycall) {
+ my $tochan = DXChannel::get($self->{u} || $main::myalias);
+ if ($tochan) {
+ my $ref = $self->tocmd;
+ $tochan->send($_) for (ref $ref ? @$ref : $ref);
+ } else {
+ dbg("no user or $main::myalias not online") if isdbg('chanerr');
+ }
+ } else {
+ $self->route($dxchan);
}
}
- $self->route($dxchan);
-
}
sub topcxx
}
sub topcxx