ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.169 by root, Wed Dec 26 21:03:21 2007 UTC vs.
Revision 1.178 by root, Sun Mar 30 06:05:52 2008 UTC

15package DC; 15package DC;
16 16
17use Carp (); 17use Carp ();
18 18
19BEGIN { 19BEGIN {
20 $VERSION = '0.9962'; 20 $VERSION = '0.9970';
21 21
22 use XSLoader; 22 use XSLoader;
23 XSLoader::load "Deliantra::Client", $VERSION; 23 XSLoader::load "Deliantra::Client", $VERSION;
24} 24}
25 25
164 164
165 $::CFG = decode_json $CFG; 165 $::CFG = decode_json $CFG;
166} 166}
167 167
168sub write_cfg { 168sub write_cfg {
169 my ($file) = @_; 169 my $file = "$Deliantra::VARDIR/client.cf";
170 170
171 $::CFG->{VERSION} = $::VERSION; 171 $::CFG->{VERSION} = $::VERSION;
172 172
173 open my $fh, ">:utf8", $file 173 open my $fh, ">:utf8", $file
174 or return; 174 or return;
198 require LWP::UserAgent; 198 require LWP::UserAgent;
199 199
200 DC::set_proxy; 200 DC::set_proxy;
201 201
202 my $ua = LWP::UserAgent->new ( 202 my $ua = LWP::UserAgent->new (
203 agent => "cfplus $VERSION", 203 agent => "deliantra $VERSION",
204 keep_alive => 1, 204 keep_alive => 1,
205 env_proxy => 1, 205 env_proxy => 1,
206 timeout => 30, 206 timeout => 30,
207 ); 207 );
208} 208}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines