Permalink
Browse files

missing debug levels

  • Loading branch information...
1 parent 4c3037c commit 2d5197a59d621675c7c561a55f9657398d9a297a @drags committed Nov 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tircd.pl
View
@@ -1687,9 +1687,9 @@ sub twitter_timeline {
# Adding a fake part again imediately if they are not a friend, to make it clear what happens
# Also, only adding them to 'friends' if they really are friends
- $kernel->post('logger','log','Getting userinfo for ' . $item->{'user'}->{'screen_name'},$heap->{'username'});
+ $kernel->post('logger','log','Getting userinfo for ' . $item->{'user'}->{'screen_name'},$heap->{'username'}) if $config{'debug'} >=2;
$is_following = eval { $heap->{'twitter'}->show_user($item->{'user'}->{'screen_name'}) };
- $kernel->post('logger','log','Got name: ' . $is_following->{'name'} . ' following: ' . $is_following->{'following'}, $heap->{'username'});
+ $kernel->post('logger','log','Got name: ' . $is_following->{'name'} . ' following: ' . $is_following->{'following'}, $heap->{'username'}) if $config{'debug'} >=2;
if ($is_following->{'following'} == 1) {
# We are following this user, add to 'friends'
push(@{$heap->{'friends'}},$tmp);

0 comments on commit 2d5197a

Please sign in to comment.