Changeset 7574eed


Ignore:
Timestamp:
Dec 21, 2009, 5:54:21 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
6396c1e
Parents:
fa0114b
git-author:
Nelson Elhage <nelhage@mit.edu> (12/21/09 17:46:28)
git-committer:
Nelson Elhage <nelhage@mit.edu> (12/21/09 17:54:21)
Message:
_get_blist: Ignore undefined or empty buddy list entries.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Hooks.pm

    rfa0114b r7574eed  
    184184
    185185sub _get_blist {
    186     my @results = $getBuddyList->run;
     186    my @results = grep defined, $getBuddyList->run;
    187187    s/^\s+|\s+$//sg for (@results);
    188     return join("\n", @results);
     188    return join("\n", grep {length($_)} @results);
    189189}
    190190
Note: See TracChangeset for help on using the changeset viewer.