… | |
… | |
32 | |
32 | |
33 | @topics |
33 | @topics |
34 | } |
34 | } |
35 | |
35 | |
36 | sub reload() { |
36 | sub reload() { |
|
|
37 | my $guard = cf::lock_acquire "ext::help::loading"; |
|
|
38 | |
|
|
39 | local $Coro::current->{desc} = "help loader"; |
|
|
40 | |
37 | $TOPIC = { |
41 | $TOPIC = { |
38 | (load_topics "DM Commands" => "dmcommand_help"), |
42 | (load_topics "DM Commands" => "dmcommand_help"), |
39 | (load_topics "Emotes" => "emote_help"), |
43 | (load_topics "Emotes" => "emote_help"), |
40 | (load_topics "Commands" => "command_help"), |
44 | (load_topics "Commands" => "command_help"), |
41 | (load_topics "Generic Help Topics" => "generic_help"), |
45 | (load_topics "Generic Help Topics" => "generic_help"), |
42 | }; |
46 | }; |
43 | |
47 | |
44 | () |
48 | () |
45 | } |
49 | } |
46 | |
50 | |
47 | cf::sync_job { |
51 | cf::post_init { |
48 | my $guard = cf::lock_acquire "ext::help::loading"; |
|
|
49 | cf::async_ext { |
|
|
50 | $Coro::current->{desc} = "help loader"; |
|
|
51 | reload; |
52 | reload; |
52 | undef $guard; |
|
|
53 | }; |
|
|
54 | }; |
53 | }; |
55 | |
54 | |
56 | # for lack of a better place: "media tags" |
55 | # for lack of a better place: "media tags" |
57 | # b bold |
56 | # b bold |
58 | # i italic |
57 | # i italic |