Changeset 3b4ba7d for perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
- Timestamp:
- Dec 15, 2009, 12:03:05 AM (15 years ago)
- Branches:
- master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- cd12307
- Parents:
- 62c91c1
- git-author:
- Alex Vandiver <alexmv@mit.edu> (12/12/09 00:25:49)
- git-committer:
- Alex Vandiver <alexmv@mit.edu> (12/15/09 00:03:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/IRC/lib/BarnOwl/Module/IRC.pm
rf1a2736 r3b4ba7d 30 30 our %ircnets; 31 31 our %channels; 32 our %reconnect; 32 33 33 34 sub startup { … … 378 379 379 380 if ($conn->conn->connected) { 380 BarnOwl::admin_message("IRC", "Connected to $alias as $nick"); 381 $ircnets{$alias} = $conn; 382 my $fd = $conn->getSocket()->fileno(); 383 BarnOwl::add_io_dispatch($fd, 'r', \&OwlProcess); 384 $conn->{FD} = $fd; 381 $conn->connected("Connected to $alias as $nick"); 385 382 } else { 386 383 die("IRC::Connection->connect failed: $!"); … … 394 391 my $conn = shift; 395 392 $conn->conn->disconnect; 396 delete $ircnets{$conn->alias};397 393 return; 398 394 }
Note: See TracChangeset
for help on using the changeset viewer.