return (1, $self->msg('e5')) if $self->priv < 5;
return (1, $self->msg('e6')) unless $call gt ' ';
-return (1, $self->msg('already', $call)) if DXChannel->get($call);
+return (1, $self->msg('already', $call)) if DXChannel::get($call);
return (1, $self->msg('outconn', $call)) if grep {$_->{call} eq $call} @main::outstanding_connects;
return (1, $self->msg('conscript', $lccall)) unless -e "$main::root/connect/$lccall";
if ($db->remote) {
# remote databases
- unless (Route::Node::get($db->remote) || DXChannel->get($db->remote)) {
+ unless (Route::Node::get($db->remote) || DXChannel::get($db->remote)) {
push @out, $self->msg('db4', uc $name, $db->remote);
last;
}
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
my ($call, $newline) = split /\s+/, $line, 2;
$call = uc $call;
-my $dxchan = DXChannel->get($call);
+my $dxchan = DXChannel::get($call);
my $mycall = $self->call;
return (1, $self->msg('e7', $call)) unless $dxchan;
foreach $call (@calls) {
$call = uc $call;
next if $call eq $main::mycall;
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
if ($dxchan) {
if ($dxchan->is_node) {
# $dxchan->send_pc39($self->msg('disc1', $self->call));
push @out, $self->msg('disc3', $call);
# } elsif (my $ref = DXCluster->get_exact($call)) {
# my $dxchancall = $ref->dxchancall;
-# if ($dxchancall eq $main::mycall || !DXChannel->get($dxchancall)) {
+# if ($dxchancall eq $main::mycall || !DXChannel::get($dxchancall)) {
# $ref->del;
# push @out, $self->msg('disc4', $call);
# }
my $dxchan;
for ( map {uc $_ } split /\s+/, $line ) {
- if (($dxchan = DXChannel->get($_)) && $dxchan->is_node) {
+ if (($dxchan = DXChannel::get($_)) && $dxchan->is_node) {
push @dxchan, $dxchan;
} else {
push @out, $self->msg('e10', $_);
foreach $call (@calls) {
$call = uc $call;
next if $call eq $main::mycall;
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
if ($dxchan) {
if ($dxchan->is_node) {
# first clear out any nodes on this dxchannel
return (1, $self->msg('e5')) if $self->priv < 8 || $self->remotecmd || $self->inscript;
my $call = uc shift @f;
-my $dxchan = DXChannel->get($call);
+my $dxchan = DXChannel::get($call);
return (1, $self->msg('e10', $call)) if !$dxchan;
return (1, $self->msg('e8')) if @f <= 0;
foreach $call (@calls) {
$call = uc $call;
next if $call eq $main::mycall;
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
if ($dxchan) {
if ($dxchan->is_node) {
my $parent = Route::Node::get($call);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->ann(1);
$chan->user->wantann(1);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->ann_talk(1);
$chan->user->wantann_talk(1);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->dx(1);
$chan->user->wantdx(1);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
foreach $call (@args) {
$call = uc $call;
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
if ($dxchan) {
$dxchan->here(1);
push @out, $self->msg('heres', $call);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
foreach $call (@args) {
$call = uc $call;
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
$user = $dxchan->user if $dxchan;
$user = DXUser->get_current($call);
if ($user) {
foreach $call (@args) {
$call = uc $call;
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
$user = $dxchan->user if $dxchan;
$user = DXUser->get($call) unless $user;
if ($user) {
foreach $call (@args) {
$call = uc $call;
unless ($self->remotecmd || $self->inscript) {
- if ($ref = DXChannel->get($call)) {
+ if ($ref = DXChannel::get($call)) {
$ref->priv($priv);
$ref->user->priv($priv);
$ref->user->put();
$ref->put();
push @out, $self->msg("regc", $call);
}
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
$dxchan->registered(1) if $dxchan;
Log('DXCommand', $self->call . " registered $call");
} else {
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->talk(1);
$chan->user->wanttalk(1);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
DXChannel::wcy($chan, 1);
$chan->user->wantwcy(1);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
DXChannel::wwv($chan, 1);
$chan->user->wantwwv(1);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->wx(1);
$chan->user->wantwx(1);
my $mylang = $self->lang;
my ($call, $newline) = split /\s+/, $line, 2;
-return (1, $self->msg('nodee1', $call)) if DXChannel->get($call);
+return (1, $self->msg('nodee1', $call)) if DXChannel::get($call);
if ($self->remotecmd || $self->inscript) {
Log('DXCommand', "$mycall is trying to spoof $call remotely");
my @out;
foreach $call (@list) {
$call = uc $call;
- my $ref = DXChannel->get($call);
+ my $ref = DXChannel::get($call);
if ($ref) {
@out = print_all_fields($self, $ref, "Channel Information $call");
} else {
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->ann(0);
$chan->user->wantann(0);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->ann_talk(0);
$chan->user->wantann_talk(0);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->dx(0);
$chan->user->wantdx(0);
foreach $call (@args) {
$call = uc $call;
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
if ($dxchan) {
$dxchan->here(0);
push @out, $self->msg('hereu', $call);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
push @out, $self->msg('nodee1', $call);
} else {
if ($ref = DXUser->get_current($call)) {
$ref->registered(0);
$ref->put();
- my $dxchan = DXChannel->get($call);
+ my $dxchan = DXChannel::get($call);
$dxchan->registered(0) if $dxchan;
push @out, $self->msg("regun", $call);
Log('DXCommand', $self->call . " unregistered $call");
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->talk(0);
$chan->user->wanttalk(0);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
DXChannel::wcy($chan, 0);
$chan->user->wantwcy(0);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
DXChannel::wwv($chan, 0);
$chan->user->wantwwv(0);
foreach $call (@args) {
$call = uc $call;
- my $chan = DXChannel->get($call);
+ my $chan = DXChannel::get($call);
if ($chan) {
$chan->wx(0);
$chan->user->wantwx(0);