/[irc-logger]/trunk/bin/irc-logger.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bin/irc-logger.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 52 by dpavlin, Sun Mar 18 16:45:18 2007 UTC revision 53 by dpavlin, Sun Mar 18 17:00:16 2007 UTC
# Line 74  use HTML::CalendarMonthSimple; Line 74  use HTML::CalendarMonthSimple;
74  use Getopt::Long;  use Getopt::Long;
75  use DateTime;  use DateTime;
76  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
77    use Net::Twitter;
78    
79  my $import_dircproxy;  my $import_dircproxy;
80  my $log_path;  my $log_path;
# Line 545  POE::Session->create( inline_states => Line 546  POE::Session->create( inline_states =>
546    
547                  save_message( channel => $channel, me => 1, nick => $nick, msg => $msg);                  save_message( channel => $channel, me => 1, nick => $nick, msg => $msg);
548    
549                  if ( my $twitter = ( $nick, $channel, 'twitter' ) ) {                  if ( my $twitter = meta( $nick, $channel, 'twitter' ) ) {
550                          _log("FIXME: send twitter for $nick on $channel [$twitter]");                          my ($login,$passwd) = split(/\s+/,$twitter,2);
551                            _log("sending twitter for $nick/$login on $channel ");
552                            my $bot = Net::Twitter->new( username=>$login, password=>$passwd );
553                            $bot->update("<${channel}> $msg");
554                  }                  }
555    
556      },      },

Legend:
Removed from v.52  
changed lines
  Added in v.53

  ViewVC Help
Powered by ViewVC 1.1.26