Ignore:
Timestamp:
Aug 20, 2008, 2:19:22 AM (13 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
69d6d3e3
Parents:
df6d9af
Message:
Try to add a string hook entry before adding a coderef, to work better
with r1105 and newer barnowl.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/BarnOwl/Module/Twitter.pm

    r9bedca0 r72b61dd  
    126126}
    127127
    128 $BarnOwl::Hooks::receiveMessage->add(\&handle_message);
     128eval {
     129    $BarnOwl::Hooks::receiveMessage->add("BarnOwl::Module::Twitter::handle_message");
     130};
     131if($@) {
     132    $BarnOwl::Hooks::receiveMessage->add(\&handle_message);
     133}
    129134
    1301351;
Note: See TracChangeset for help on using the changeset viewer.