Changeset 40c9dac


Ignore:
Timestamp:
Dec 27, 2009, 3:05:53 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
c9bdb46
Parents:
f2adf6c
Message:
Kill some defunct variables.
File:
1 edited

Legend:

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

    r4ae10de r40c9dac  
    2626our @twitter_handles = ();
    2727our $default_handle = undef;
    28 my $class    = $ENV{USER};
    29 my $instance = "status";
    30 my $opcode   = "twitter";
    31 my $use_reply_to = 0;
    32 my $next_service_to_poll = 0;
    3328
    3429my $desc = <<'END_DESC';
     
    4338    'twitter:class',
    4439    {
    45         default     => $class,
     40        default     => $ENV{USER},
    4641        summary     => 'Class to watch for Twitter messages',
    4742        description => $desc
     
    5146    'twitter:instance',
    5247    {
    53         default => $instance,
     48        default => 'status',
    5449        summary => 'Instance on twitter:class to watch for Twitter messages.',
    5550        description => $desc
     
    5954    'twitter:opcode',
    6055    {
    61         default => $opcode,
     56        default => 'twitter',
    6257        summary => 'Opcode for zephyrs that will be sent as twitter updates',
    6358        description => $desc
     
    174169sub handle_message {
    175170    my $m = shift;
    176     ($class, $instance, $opcode) = map{BarnOwl::getvar("twitter:$_")} qw(class instance opcode);
     171    my ($class, $instance, $opcode) = map{BarnOwl::getvar("twitter:$_")} qw(class instance opcode);
    177172    if($m->type eq 'zephyr'
    178173       && $m->sender eq BarnOwl::zephyr_getsender()
Note: See TracChangeset for help on using the changeset viewer.