#
sub tell_buddies
{
- my ($self, $m, $call) = @_;
+ my ($self, $m, $call, $node) = @_;
$call ||= $self->{call};
+ $call =~ s/-\d+$//;
+ $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, $call)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}} ;
+ $dxchan->send($dxchan->msg($m, $call, $node)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}} ;
}
}