projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
6. Make the scripts look for user and node_default files if there isn't a
[spider.git]
/
perl
/
DXProt.pm
diff --git
a/perl/DXProt.pm
b/perl/DXProt.pm
index 181c75b0f36cebbd1298ba9195f9a914589a30d2..b8b17ae612065b2080eb8c44f7c34cc20120c81c 100644
(file)
--- a/
perl/DXProt.pm
+++ b/
perl/DXProt.pm
@@
-32,6
+32,7
@@
use BadWords;
use DXHash;
use Route;
use Route::Node;
use DXHash;
use Route;
use Route::Node;
+use Script;
use strict;
use strict;
@@
-272,6
+273,10
@@
sub start
# send info to all logged in thingies
$self->tell_login('loginn');
# send info to all logged in thingies
$self->tell_login('loginn');
+
+ # run a script send the output to the debug file
+ my $script = new Script(lc $call) || new Script('node_default');
+ $script->run($self) if $script;
}
#
}
#
@@
-969,7
+974,7
@@
sub normal
# my $ref = Route::get($call) || Route->new($call);
# return unless $self->in_filter_route($ref);
# my $ref = Route::get($call) || Route->new($call);
# return unless $self->in_filter_route($ref);
- if ($field[3] eq $field[2] || field[3] =~ /^\s*$/) {
+ if ($field[3] eq $field[2] ||
$
field[3] =~ /^\s*$/) {
dbg('PCPROT: invalid value') if isdbg('chanerr');
return;
}
dbg('PCPROT: invalid value') if isdbg('chanerr');
return;
}