X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=0f802d89f6396a8fd031ea2323a8d41666c3131c;hb=8195bc13ac14b8fbf13d804186680653b5fd8564;hp=1450a6c644cccaa3eb214a26d3e393b1102e0fa0;hpb=d5b4190c36f130852973121042876af3c5642cd7;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 1450a6c6..0f802d89 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -264,7 +264,8 @@ sub finish open(I, "$main::data/logout") or confess; my @in = ; close(I); - $self->sendnow('D', @in); + $self->send_now('D', @in); + sleep(1); } if ($call eq $main::myalias) { # unset the channel if it is us really @@ -289,9 +290,7 @@ sub finish sub prompt { my $self = shift; - my $call = $self->{call}; - $self->send($self->msg('pr', $call)); - #DXChannel::msg($self, 'pr', $call); + $self->send($self->msg($self->here ? 'pr' : 'pr2', $self->call)); } # broadcast a message to all users [except those mentioned after buffer] @@ -489,11 +488,7 @@ sub find_cmd_name { close $fh; #wrap the code into a subroutine inside our unique package - my $eval = qq{ - sub $package - { - $sub - } }; + my $eval = qq{ sub $package { $sub } }; if (isdbg('eval')) { my @list = split /\n/, $eval;