for inserting macros into the config. The new method is much cleaner and uses the Config API. Updated the docs for the RootTitle macro, both POD and online help.
11 lines
268 B
Perl
11 lines
268 B
Perl
package WebGUI::Macro_Config;
|
|
|
|
sub enable_macro {
|
|
my ($session, $nickname, $macroName) = @_;
|
|
my %macros = %{ $session->config->get('macros') };
|
|
return '' if $macros{$nickname};
|
|
$session->config->addToHash("macros", $nickname, $macroName);
|
|
return $nickname;
|
|
}
|
|
|
|
1;
|