Ignore:
Timestamp:
12/11/10 06:04:22 (14 years ago)
Author:
nanardon
Message:
  • chat doc as html
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Model/Help/POD.pm

    r102 r110  
    5757} 
    5858 
     59sub bot_help_html { 
     60    my ($self, $cmd) = @_; 
     61    my $botpom = $self->{pom}{'Chat::Cmd'}; 
     62    foreach my $head1 ($botpom->content) { 
     63        $head1->title eq 'AVAILLABLE FUNCTIONS' or next; 
     64        foreach ($head1->content) { 
     65            $_->title =~ /^\Q$cmd\E( |$)/ or next; 
     66            my $ppvh = Pod::POM::View::HTML->new; 
     67            return $_->present($ppvh); 
     68        } 
     69        last; 
     70    } 
     71    return; 
     72} 
     73 
     74sub chat_functions { 
     75    my ($self) = @_; 
     76    my $botpom = $self->{pom}{'Chat::Cmd'}; 
     77    foreach my $head1 ($botpom->content) { 
     78        $head1->title eq 'AVAILLABLE FUNCTIONS' or next; 
     79        my $ppvh = Pod::POM::View::HTML->new; 
     80        return $head1->present($ppvh); 
     81    } 
     82    return; 
     83} 
     84 
    5985 
    6086sub xmlrpc_functions { 
Note: See TracChangeset for help on using the changeset viewer.