diff options
author | Zach Copley <zach@status.net> | 2009-10-14 04:50:16 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-10-14 04:50:16 +0000 |
commit | 0fd8e758ade32204b452cc9fd40e071f0ec8c0f6 (patch) | |
tree | eaf4d6517788a7c5070bfe28fb61c433a471d00a /plugins/TwitterBridge/TwitterBridgePlugin.php | |
parent | 39bcd514b4cbb26b28aeff2aa65e31bd86773782 (diff) |
Make queuing and daemons work via events
Diffstat (limited to 'plugins/TwitterBridge/TwitterBridgePlugin.php')
-rw-r--r-- | plugins/TwitterBridge/TwitterBridgePlugin.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/TwitterBridgePlugin.php b/plugins/TwitterBridge/TwitterBridgePlugin.php index a8de1c664..69bec0651 100644 --- a/plugins/TwitterBridge/TwitterBridgePlugin.php +++ b/plugins/TwitterBridge/TwitterBridgePlugin.php @@ -97,5 +97,22 @@ class TwitterBridgePlugin extends Plugin } } + function onStartEnqueueNotice($notice, $transports) + { + array_push($transports, 'twitter'); + return true; + } + + function onGetValidDaemons($daemons) + { + array_push($daemons, INSTALLDIR . '/plugins/TwitterBridge/daemons/twitterqueuehandler.php'); + array_push($daemons, INSTALLDIR . '/plugins/TwitterBridge/daemons/synctwitterfriends.php'); + + if (common_config('twitterbridge', 'enabled')) { + array_push($daemons, INSTALLDIR . '/plugins/TwitterBridge/daemons/twitterstatusfetcher.php'); + } + + return true; + } }
\ No newline at end of file |