Permalink
Browse files

camptail: only enter rooms if we are going to follow

Entering is only required for streaming, so if we're not
streaming, there's no point (and it is weird since it lets
everyone else know we're there).
  • Loading branch information...
peff committed Feb 16, 2011
1 parent 5dd5353 commit f9a1bec49aec3ac0f2bba4a9f116acd302da5cef
Showing with 1 addition and 1 deletion.
  1. +1 −1 camptail.pl
View
@@ -36,7 +36,6 @@
@rooms = grep {
$index{$_->name} || $index{$_->id}
} $campfire->rooms;
$_->enter foreach @rooms;
}
else {
@rooms = $campfire->presence;
@@ -46,6 +45,7 @@
$callback->($_, $room) foreach $room->recent($tail);
if ($follow) {
print STDERR "Monitoring room: ", $room->name, "\n" if $verbose;
$room->enter;
$room->stream($callback);
}
}

0 comments on commit f9a1bec

Please sign in to comment.