Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perlwrap.pm

    r811ad93 r0eaa488  
    132132
    133133Remove a file descriptor previously registered via C<add_dispatch>
     134
     135=head2 create_style NAME OBJECT
     136
     137Creates a new barnowl style with the given NAME defined by the given
     138object. The object must have a C<description> method which returns a
     139string description of the style, and a and C<format_message> method
     140which accepts a C<BarnOwl::Message> object and returns a string that
     141is the result of formatting the message for display.
    134142
    135143=cut
     
    824832    my $self = shift;
    825833    my $m = shift;
    826     return "\@b(PING) from \@b(" . $m->pretty_sender . ")\n";
     834    return "\@b(PING) from \@b(" . $m->pretty_sender . ")";
    827835}
    828836
     
    923931
    924932sub format_ping($) {
     933  my $self = shift;
    925934  my $m = shift;
    926935  return sprintf(
Note: See TracChangeset for help on using the changeset viewer.