03Jun06=======================================================================
-1. Added changes from Jim AD1C.
+1. Added changes to wpxloc.raw (prefixes) suggested by Jim AD1C.
+2. Made a change to prevent xml data being interpreted unless we are
+configured for it.
+3. Change the buddy messages after a suggestion from Angel EA7WA.
02Apr06=======================================================================
1. incorporated cty-1604 data.
29Mar06=======================================================================
$call ||= $self->{call};
$call =~ s/-\d+$//;
- my $s = $node ? "$node: $call" : $call;
+ $m .= 'n' if $node;
# send info to all logged in thingies
my @dxchan = get_all_users();
foreach $dxchan (@dxchan) {
next if $dxchan == $self;
next if $dxchan->{call} eq $main::mycall;
- $dxchan->send($dxchan->msg($m, $s)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}} ;
+ $dxchan->send($dxchan->msg($m, $call, $node)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}} ;
}
}
my $ref = Route::User::get($call);
if ($ref) {
foreach my $node (@{$ref->parent}) {
- my $s = $node eq $main::mycall ? $call : "$node: $call";
- $self->send($self->msg('loginb', $s));
+ $self->send($self->msg($node eq $main::mycall ? 'loginb' : 'loginbn', $call, $node));
}
}
}
{
my ($self, $line) = @_;
- if ($line =~ '^<\w+\s') {
+ if ($line =~ '^<\w+\s' && $main::do_xml) {
DXXml::normal($self, $line);
return;
}
lockoutun => '$_[0] Unlocked',
lockoutuse => 'usage: sh/lockout <call>|ALL',
loginb => 'Buddy $_[0] has logged in',
+ loginbn => 'Buddy $_[0] has logged in at $_[1]',
logoutb => 'Buddy $_[0] has logged out',
+ logoutbn => 'Buddy $_[0] has logged out from $_[1]',
loginu => 'User $_[0] has logged in',
logoutu => 'User $_[0] has logged out',
loginn => 'Node $_[0] has logged in',