--- deliantra/Deliantra-Client/DC/MessageDistributor.pm 2008/03/21 11:17:11 1.4 +++ deliantra/Deliantra-Client/DC/MessageDistributor.pm 2010/04/03 02:58:25 1.8 @@ -1,6 +1,6 @@ package DC::MessageDistributor; -use strict; -no warnings; + +use common::sense; sub new { my $this = shift; @@ -14,17 +14,18 @@ can_close => 0, can_undock => 0, info => { + id => "", title => "Log", - tooltip => - "Server Log. This text viewer contains all recent message sent by the server.", - entry_tooltip => - "Command Entry. If you enter something and press return/enter here, " - ."the line you entered will be sent to the server as a command.", - reply => '' + tooltip => "Server Log. This text viewer contains all recent message sent by the server.", + entry_tooltip => "Command Entry. If you enter something and press return/enter here, " + . "the line you entered will be sent to the server as a command.", + reply => '' } ) ); + $self->{dockbar}->select_dockable ($self->{log}); + return $self } @@ -96,6 +97,7 @@ sub update_chat { my ($self, $id) = @_; + $self->{chatview}->{$id}->update_info ($self->{info}->{$id}); }