projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ifix permissions
[spider.git]
/
perl
/
DXChannel.pm
diff --git
a/perl/DXChannel.pm
b/perl/DXChannel.pm
index 9812037fce2ee1fa44255555fe6e63c09957c0d3..efaffb6c04d80be433ac080fd2470c53ea340185 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+$//;
+ $m .= 'n' if $node;
# 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, $call
, $node)) if grep $_ eq $call, @{$dxchan->{user}->{buddies}
} ;
}
}
}
}
@@
-722,6
+724,19
@@
sub process
}
}
}
}
+sub handle_xml
+{
+ my $self = shift;
+ my $r = 0;
+
+ if (DXXml::available()) {
+ $r = $self->{handle_xml} || 0;
+ } else {
+ delete $self->{handle_xml} if exists $self->{handle_xml};
+ }
+ return $r;
+}
+
#no strict;
sub AUTOLOAD
{
#no strict;
sub AUTOLOAD
{