--- deliantra/Deliantra-Client/DC/Protocol.pm 2007/08/03 02:20:32 1.144 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2007/08/06 02:11:45 1.145 @@ -23,7 +23,7 @@ setup_req => { extmap => 1, excmd => 1, - ywidget => 1,#d# + xwidget => 1,#d# %{$arg{setup_req} || {}}, }, ); @@ -228,23 +228,7 @@ sub logprint { my ($self, @a) = @_; - $self->{log_fh} ||= do { - my $path = "$Crossfire::VARDIR/log.$self->{host}"; - - open my $fh, ">>:utf8", $path - or die "Couldn't open logfile $path: $!"; - - $fh->autoflush (1); - - $fh; - }; - - my ($sec, $min, $hour, $mday, $mon, $year) = localtime time; - - my $ts = sprintf "%04d-%02d-%02d %02d:%02d:%02d", - $year + 1900, $mon + 1, $mday, $hour, $min, $sec; - - print {$self->{log_fh}} "$ts ", @a, "\n"; + CFPlus::DB::logprint "$Crossfire::VARDIR/log.$self->{host}" => (join "", @a), sub { }; } sub _stat_numdiff {