Changeset 4789b17 for perl/modules/IRC/lib/BarnOwl/Module/IRC
- Timestamp:
- Jul 25, 2008, 11:59:40 PM (16 years ago)
- Branches:
- master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- a1a2036
- Parents:
- d264c6d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/IRC/lib/BarnOwl/Module/IRC/Connection.pm
rd264c6d r4789b17 64 64 $self->conn->add_handler(join => sub { shift; $self->on_join(@_) }); 65 65 $self->conn->add_handler(part => sub { shift; $self->on_part(@_) }); 66 $self->conn->add_handler(quit => sub { shift; $self->on_quit(@_) }); 66 67 $self->conn->add_handler(disconnect => sub { shift; $self->on_disconnect(@_) }); 67 68 $self->conn->add_handler(nicknameinuse => sub { shift; $self->on_nickinuse(@_) }); … … 164 165 my $msg = $self->new_message($evt, 165 166 loginout => 'login', 167 action => 'join', 166 168 channel => $evt->to, 167 169 replycmd => 'irc-msg -a ' . $self->alias . ' ' . join(' ', $evt->to), … … 175 177 my $msg = $self->new_message($evt, 176 178 loginout => 'logout', 179 action => 'part', 177 180 channel => $evt->to, 178 181 replycmd => 'irc-msg -a ' . $self->alias . ' ' . join(' ', $evt->to), 182 replysendercmd => 'irc-msg -a ' . $self->alias . ' ' . $evt->nick 183 ); 184 BarnOwl::queue_message($msg); 185 } 186 187 sub on_quit { 188 my ($self, $evt) = @_; 189 my $msg = $self->new_message($evt, 190 loginout => 'logout', 191 action => 'quit', 192 from => $evt->to, 193 reason => [$evt->args]->[0], 194 replycmd => 'irc-msg -a ' . $self->alias . ' ' . $evt->nick, 179 195 replysendercmd => 'irc-msg -a ' . $self->alias . ' ' . $evt->nick 180 196 );
Note: See TracChangeset
for help on using the changeset viewer.