Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix bug where twitter_alias was not fully consulted for posts from self

Signed-off-by: Marc Mims <marc@questright.com>
  • Loading branch information...
commit f16062fdd672b613dd909312aac6d783c752c782 1 parent 9e62a61
Hans Dieter Pearcey authored semifor committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/POE/Component/Server/Twirc.pm
6 lib/POE/Component/Server/Twirc.pm
View
@@ -571,6 +571,7 @@ event ircd_daemon_join => sub {
return unless my($nick) = $user =~ /^([^!]+)!/;
return if $self->get_user_by_nick($nick);
return if $nick eq $self->irc_botname;
+ return if $nick eq $self->twitter_alias;
if ( $ch eq $self->irc_channel ) {
$self->joined(1);
@@ -892,7 +893,10 @@ event friends_timeline => sub {
$self->post_ircd(daemon_cmd_nick => $user->{screen_name}, $name);
}
- $self->add_user($status->{user});
+ $self->add_user({
+ id => $status->{user}->{id},
+ screen_name => $name,
+ });
$self->log->debug(" { $name, $text }");
push @{ $self->tweet_stack }, { name => $name, text => $text }
Please sign in to comment.
Something went wrong with that request. Please try again.