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

Comparing deliantra/Deliantra-Client/DC/Protocol.pm (file contents):
Revision 1.30 by root, Sun Jun 11 18:41:30 2006 UTC vs.
Revision 1.31 by root, Sun Jun 11 18:43:09 2006 UTC

630sub logged_in { 630sub logged_in {
631 my ($self) = @_; 631 my ($self) = @_;
632 632
633 $self->send_ext_req (cfplus => "version", "1", sub { 633 $self->send_ext_req (cfplus => "version", "1", sub {
634 $self->{cfplus_ext} = $_[0]; 634 $self->{cfplus_ext} = $_[0];
635
636 my @yesno = ("<span foreground='red'>no</span>", "<span foreground='green'>yes</span>");
637
638 $::SERVER_INFO->set_markup (
639 "server <tt>$self->{host}:$self->{port}</tt>\n"
640 . "protocol version <tt>$self->{version}</tt>\n"
641 . "minimap support $yesno[$self->{setup}{mapinfocmd} > 0]\n"
642 . "extended command support $yesno[$self->{setup}{extcmd} > 0]\n"
643 . "cfplus support $yesno[$self->{cfplus_ext} > 0]\n"
644 . "map size $self->{mapw}×$self->{maph}\n"
645 );
635 }); 646 });
636 647
637 $self->send_command ("output-sync $::CFG->{output_sync}"); 648 $self->send_command ("output-sync $::CFG->{output_sync}");
638 $self->send_command ("output-count $::CFG->{output_count}"); 649 $self->send_command ("output-count $::CFG->{output_count}");
639 $self->send_command ("pickup $::CFG->{pickup}"); 650 $self->send_command ("pickup $::CFG->{pickup}");
640
641 my @yesno = ("<span foreground='red'>no</span>", "<span foreground='green'>yes</span>");
642
643 $::SERVER_INFO->set_markup (
644 "server <tt>$self->{host}:$self->{port}</tt>\n"
645 . "protocol version <tt>$self->{version}</tt>\n"
646 . "minimap support $yesno[$self->{setup}{mapinfocmd} > 0]\n"
647 . "extended command support $yesno[$self->{setup}{extcmd} > 0]\n"
648 . "cfplus support $yesno[$self->{cfplus_ext} > 0]\n"
649 . "map size $self->{mapw}×$self->{maph}\n"
650 );
651} 651}
652 652
6531; 6531;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines