diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-05-15 22:24:34 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-05-15 22:24:34 +0000 |
commit | ac674da1435aba942053eb90524be3201bdfb531 (patch) | |
tree | 05e22178a7bfa4068383db400874beb51f7ca008 /lib/network | |
parent | b05173ede74f6aa64e096e7f43913eea7f3e1f8f (diff) | |
download | drakx-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.pm | 1 | ||||
-rw-r--r-- | lib/network/connection/ppp.pm | 2 |
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; } |