Changeset 167044b for perl/modules


Ignore:
Timestamp:
Aug 20, 2008, 2:16:43 AM (13 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
aef51f8
Parents:
5987370
Message:
Support string hook entries.
perlwrap.pm: Support calling and adding string hook entries in BarnOwl::Hook
IRC.pm: Switch our hooks to use string entries
Jabber.pm: Switch our hooks to use string entries
ModuleLoader.pm: No longer clear all hooks on reload

This should have the net effect that we can safely reload single
modules.
Location:
perl/modules
Files:
2 edited

Legend:

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

    rd264c6d r167044b  
    120120}
    121121
    122 $BarnOwl::Hooks::startup->add(\&startup);
    123 $BarnOwl::Hooks::shutdown->add(\&shutdown);
    124 #$BarnOwl::Hooks::mainLoop->add(\&mainloop_hook);
     122$BarnOwl::Hooks::startup->add('BarnOwl::Module::IRC::startup');
     123$BarnOwl::Hooks::shutdown->add('BarnOwl::Module::IRC::shutdown');
    125124
    126125################################################################################
  • perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm

    rbfc127b r167044b  
    6868        register_keybindings();
    6969        register_filters();
    70         $BarnOwl::Hooks::mainLoop->add(\&onMainLoop);
    71         $BarnOwl::Hooks::getBuddyList->add(\&onGetBuddyList);
     70        $BarnOwl::Hooks::mainLoop->add("BarnOwl::Module::Jabber::onMainLoop");
     71        $BarnOwl::Hooks::getBuddyList->add("BarnOwl::Module::Jabber::onGetBuddyList");
    7272        $vars{show} = '';
    7373        BarnOwl::new_variable_bool("jabber:show_offline_buddies",
     
    9292}
    9393
    94 $BarnOwl::Hooks::startup->add(\&onStart);
     94$BarnOwl::Hooks::startup->add("BarnOwl::Module::Jabber::onStart");
    9595
    9696sub onMainLoop {
Note: See TracChangeset for help on using the changeset viewer.