projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix sh/muf
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 45e8d39b9904a3fd87374f4cc742558b39b1de24..929e7e530183ed71d62be1c2e4b9ff4701d122ed 100644
(file)
--- a/
perl/DXChannel.pm
+++ b/
perl/DXChannel.pm
@@
-513,9
+513,11
@@
sub tell_login
#
sub tell_buddies
{
#
sub tell_buddies
{
- my ($self, $m, $call) = @_;
+ my ($self, $m, $call
, $node
) = @_;
$call ||= $self->{call};
$call ||= $self->{call};
+ $call =~ s/-\d+$//;
+ my $s = $node ? "$node: $call" : $call;
# send info to all logged in thingies
my @dxchan = get_all_users();
# send info to all logged in thingies
my @dxchan = get_all_users();
@@
-523,7
+525,7
@@
sub tell_buddies
foreach $dxchan (@dxchan) {
next if $dxchan == $self;
next if $dxchan->{call} eq $main::mycall;
foreach $dxchan (@dxchan) {
next if $dxchan == $self;
next if $dxchan->{call} eq $main::mycall;
- $dxchan->send($dxchan->msg($m, $
call
)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}} ;
+ $dxchan->send($dxchan->msg($m, $
s
)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}} ;
}
}
}
}