Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/IRC/lib/BarnOwl/Module/IRC.pm

    r9c7a701 rcab045b  
    6969}
    7070
    71 #sub mainloop_hook {
    72 #    return unless defined $irc;
    73 #    eval {
    74 #        $irc->do_one_loop();
    75 #    };
    76 #    return;
    77 #}
    78 
    79 sub OwlProcess {
     71sub mainloop_hook {
    8072    return unless defined $irc;
    8173    eval {
     
    8476    return;
    8577}
    86 
    8778
    8879sub register_handlers {
     
    118109$BarnOwl::Hooks::startup->add(\&startup);
    119110$BarnOwl::Hooks::shutdown->add(\&shutdown);
    120 #$BarnOwl::Hooks::mainLoop->add(\&mainloop_hook);
     111$BarnOwl::Hooks::mainLoop->add(\&mainloop_hook);
    121112
    122113################################################################################
     
    174165        BarnOwl::admin_message("IRC", "Connected to $alias as $nick");
    175166        $ircnets{$alias} = $conn;
    176         my $fd = $conn->getSocket()->fileno();
    177         BarnOwl::add_dispatch($fd, \&OwlProcess);
    178         $conn->{FD} = $fd;
    179167    } else {
    180168        die("IRC::Connection->connect failed: $!");
Note: See TracChangeset for help on using the changeset viewer.