Changeset 41ade7f
- Timestamp:
- Apr 3, 2011, 3:06:02 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- b9a642a
- Parents:
- 0b0e460
- git-author:
- Nelson Elhage <nelhage@mit.edu> (03/10/11 11:30:56)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (04/03/11 15:06:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/IRC/lib/BarnOwl/Module/IRC/Connection.pm
r0b0e460 r41ade7f 65 65 disconnect => on("disconnect"), 66 66 publicmsg => on("msg"), 67 privatemsg => on("msg")); 67 privatemsg => on("msg"), 68 irc_error => on("error")); 68 69 for my $m (qw(welcome yourhost created 69 70 luserclient luserop luserchannels luserme … … 93 94 nick_change => on("nick"), 94 95 ctcp_action => on("ctcp_action"), 95 'irc_*' => sub { BarnOwl::debug("IRC: " . $_[1]->{command}) }); 96 'irc_*' => sub { BarnOwl::debug("IRC: " . $_[1]->{command} . 97 join(" ", @{$_[1]->{params}})) }); 96 98 97 99 return $self; … … 256 258 sub on_disconnect { 257 259 my ($self, $why) = @_; 258 $self->disconnect;259 260 BarnOwl::admin_message('IRC', 260 261 "[" . $self->alias . "] Disconnected from server"); 262 $self->disconnect; 261 263 if ($why && $why =~ m{error in connection}) { 262 264 $self->schedule_reconnect; 263 265 } 266 } 267 268 sub on_error { 269 my ($self, $evt) = @_; 270 BarnOwl::admin_message('IRC', 271 "[" . $self->alias . "] " . 272 "Error: " . join(" ", @{$evt->{params}})); 264 273 } 265 274
Note: See TracChangeset
for help on using the changeset viewer.