Buncha cleanup

This commit is contained in:
Brion Vibber
2010-10-05 13:25:28 -07:00
parent 76353ede54
commit eb04df583a
3 changed files with 148 additions and 29 deletions

View File

@@ -92,11 +92,22 @@ $stream->hookEvent('favorite', function($data) {
$data['target']['screen_name'],
$data['target_object']['text']);
});
$stream->hookEvent('unfavorite', function($data) {
printf("%s unfavorited %s's notice: %s\n",
$data['source']['screen_name'],
$data['target']['screen_name'],
$data['target_object']['text']);
});
$stream->hookEvent('follow', function($data) {
printf("%s friended %s\n",
$data['source']['screen_name'],
$data['target']['screen_name']);
});
$stream->hookEvent('unfollow', function($data) {
printf("%s unfriended %s\n",
$data['source']['screen_name'],
$data['target']['screen_name']);
});
$stream->hookEvent('delete', function($data) {
printf("Deleted status notification: %s\n",
$data['status']['id']);