Changeset 9eb9479 for lib/BarnOwl/Module/Twitter.pm
- Timestamp:
- Oct 7, 2009, 10:53:37 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 176434d
- Parents:
- 443eea1
- git-author:
- Nelson Elhage <nelhage@mit.edu> (10/06/09 00:18:00)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (10/07/09 22:53:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/BarnOwl/Module/Twitter.pm
rf0de278 r9eb9479 26 26 our @twitter_handles = (); 27 27 our $default_handle = undef; 28 my $user = BarnOwl::zephyr_getsender(); 29 my ($class) = ($user =~ /(^[^@]+)/); 28 my $class = $ENV{USER}; 30 29 my $instance = "status"; 31 30 my $opcode = "twitter"; … … 133 132 134 133 for my $cfg (@$raw_cfg) { 135 my $twitter_args = { username => $cfg->{user} || $user,134 my $twitter_args = { username => $cfg->{user}, 136 135 password => $cfg->{password}, 137 136 source => 'barnowl', … … 176 175 my $m = shift; 177 176 ($class, $instance, $opcode) = map{BarnOwl::getvar("twitter:$_")} qw(class instance opcode); 178 if($m->sender eq $user177 if($m->sender eq BarnOwl::zephyr_getsender() 179 178 && match($m->class, $class) 180 179 && match($m->instance, $instance)
Note: See TracChangeset
for help on using the changeset viewer.