mirror of
git://scm.dxcluster.org/scm/spider
synced 2024-09-21 07:47:10 +00:00
fix echoing (?)
This commit is contained in:
parent
6e858487b4
commit
bb0a21bec3
@ -6,6 +6,6 @@
|
||||
#
|
||||
#
|
||||
my $self = shift;
|
||||
$self->send_now("E", "1");
|
||||
$self->conn->echo(1);
|
||||
$self->user->wantecho(1);
|
||||
return (1, $self->msg('echoon'));
|
||||
|
@ -7,5 +7,6 @@
|
||||
#
|
||||
my $self = shift;
|
||||
$self->send_now("E", "0");
|
||||
$self->conn->echo(0);
|
||||
$self->user->wantecho(0);
|
||||
return (1, $self->msg('echooff'));
|
||||
|
@ -466,6 +466,12 @@ sub set_event_handler
|
||||
dbg("Msg::set_event_handler called from ${pkg}::${fn} line $line doing $s");
|
||||
}
|
||||
|
||||
sub echo
|
||||
{
|
||||
my $conn = shift;
|
||||
return defined $_[0] ? $conn->{echo} = $_[0] : $_[0];
|
||||
}
|
||||
|
||||
sub DESTROY
|
||||
{
|
||||
my $conn = shift;
|
||||
|
Loading…
Reference in New Issue
Block a user