summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-15 22:24:34 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-15 22:24:34 +0000
commitac674da1435aba942053eb90524be3201bdfb531 (patch)
tree05e22178a7bfa4068383db400874beb51f7ca008 /lib/network
parentb05173ede74f6aa64e096e7f43913eea7f3e1f8f (diff)
downloaddrakx-net-ac674da1435aba942053eb90524be3201bdfb531.tar
drakx-net-ac674da1435aba942053eb90524be3201bdfb531.tar.gz
drakx-net-ac674da1435aba942053eb90524be3201bdfb531.tar.bz2
drakx-net-ac674da1435aba942053eb90524be3201bdfb531.tar.xz
drakx-net-ac674da1435aba942053eb90524be3201bdfb531.zip
introduce a use_chat field to allow writing chat even if no dial number is specified
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/connection/cellular.pm1
-rw-r--r--lib/network/connection/ppp.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/connection/cellular.pm b/lib/network/connection/cellular.pm
index b0e6bb0..e7a842a 100644
--- a/lib/network/connection/cellular.pm
+++ b/lib/network/connection/cellular.pm
@@ -52,6 +52,7 @@ sub get_access_settings {
sub set_ppp_settings {
my ($self) = @_;
+ $self->{access}{use_chat} = 1;
$self->{access}{dial_number} = "*99***$self->{access}{cid}#";
}
diff --git a/lib/network/connection/ppp.pm b/lib/network/connection/ppp.pm
index 6efdf81..496ccda 100644
--- a/lib/network/connection/ppp.pm
+++ b/lib/network/connection/ppp.pm
@@ -132,7 +132,7 @@ sub write_peer {
sub write_ppp_settings {
my ($self) = @_;
$self->write_secrets if $self->{access}{login};
- $self->write_chat if $self->{access}{dial_number};
+ $self->write_chat if $self->{access}{use_chat};
$self->write_peer;
}