1 | package DC::MessageDistributor; |
1 | package DC::MessageDistributor; |
2 | use strict; |
2 | |
3 | no warnings; |
3 | use common::sense; |
4 | |
4 | |
5 | sub new { |
5 | sub new { |
6 | my $this = shift; |
6 | my $this = shift; |
7 | my $class = ref($this) || $this; |
7 | my $class = ref($this) || $this; |
8 | my $self = { @_ }; |
8 | my $self = { @_ }; |
… | |
… | |
21 | . "the line you entered will be sent to the server as a command.", |
21 | . "the line you entered will be sent to the server as a command.", |
22 | reply => '' |
22 | reply => '' |
23 | } |
23 | } |
24 | ) |
24 | ) |
25 | ); |
25 | ); |
|
|
26 | |
|
|
27 | $self->{dockbar}->select_dockable ($self->{log}); |
26 | |
28 | |
27 | return $self |
29 | return $self |
28 | } |
30 | } |
29 | |
31 | |
30 | # called by MAPWIDGET activate console event |
32 | # called by MAPWIDGET activate console event |
… | |
… | |
93 | } |
95 | } |
94 | } |
96 | } |
95 | |
97 | |
96 | sub update_chat { |
98 | sub update_chat { |
97 | my ($self, $id) = @_; |
99 | my ($self, $id) = @_; |
|
|
100 | |
98 | $self->{chatview}->{$id}->update_info ($self->{info}->{$id}); |
101 | $self->{chatview}->{$id}->update_info ($self->{info}->{$id}); |
99 | } |
102 | } |
100 | |
103 | |
101 | sub init_chat { |
104 | sub init_chat { |
102 | my ($self, $id) = @_; |
105 | my ($self, $id) = @_; |