… | |
… | |
187 | $self->send_exti_msg (w_r => $rid, [map $w->{$_}, @$attr]); |
187 | $self->send_exti_msg (w_r => $rid, [map $w->{$_}, @$attr]); |
188 | }); |
188 | }); |
189 | |
189 | |
190 | # message window |
190 | # message window |
191 | $self->connect_ext (channel_info => sub { |
191 | $self->connect_ext (channel_info => sub { |
|
|
192 | my ($info) = @_; |
|
|
193 | $self->{channels}->{$info->{id}} = $info; |
192 | $::MESSAGE_WINDOW->add_channel ($_[0]); |
194 | $::MESSAGE_WINDOW->add_channel ($_[0]); |
193 | }); |
195 | }); |
194 | |
196 | |
195 | # destroy widgets on logout |
197 | # destroy widgets on logout |
196 | $self->{on_stop_game_guard} = $self->{map_widget}{root}->connect (stop_game => sub { |
198 | $self->{on_stop_game_guard} = $self->{map_widget}{root}->connect (stop_game => sub { |