ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/help.ext
(Generate patch)

Comparing deliantra/server/ext/help.ext (file contents):
Revision 1.7 by root, Mon Apr 23 19:17:16 2007 UTC vs.
Revision 1.10 by root, Wed Sep 19 21:56:30 2007 UTC

36} 36}
37 37
38cf::sync_job { 38cf::sync_job {
39 my $guard = cf::lock_acquire "ext::help::loading"; 39 my $guard = cf::lock_acquire "ext::help::loading";
40 cf::async_ext { 40 cf::async_ext {
41 $Coro::current->{desc} = "help loader";
41 reload; 42 reload;
42 undef $guard; 43 undef $guard;
43 }; 44 };
44}; 45};
45 46
72 push @{$topics{$v->[0]}}, $k; 73 push @{$topics{$v->[0]}}, $k;
73 } 74 }
74 75
75 my $res; 76 my $res;
76 while (my ($k, $v) = each %topics) { 77 while (my ($k, $v) = each %topics) {
77 $res .= "[b]$k:[/b]\n" . (join " ", sort @$v) . "\n\n"; 78 $res .= "B<$k:>\n" . (join " ", sort @$v) . "\n\n";
78 } 79 }
79 80
80 $pl->reply (undef, $res); 81 $pl->reply (undef, $res);
81 82
82 } elsif (my $item = $TOPIC->{$topic}) { 83 } elsif (my $item = $TOPIC->{$topic}) {
83 my ($type, @pars) = @$item; 84 my ($type, @pars) = @$item;
84 $pl->reply (undef, cf::pod::as_text \@pars); 85 $pl->reply (undef, cf::pod::as_cfpod \@pars);
85 86
86 } else { 87 } else {
87 $pl->reply (undef, "'$topic' no such help topic, try just 'help' to get a list of topics."); 88 $pl->reply (undef, "'$topic' no such help topic, try just 'help' to get a list of topics.");
88 } 89 }
89}; 90};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines