mod_exists is now exportable.
This commit is contained in:
1 parent
d536563ea5
commit
1838c2107d
1 file changed
+2
-2
+2
-2
@@ -12,7 +12,7 @@ our (%LANGE, %MODULE, %EVENTS, %HOOKS, %CMDS);
|
|||||||
our @ISA = qw(Exporter);
|
our @ISA = qw(Exporter);
|
||||||
our @EXPORT_OK = qw(conf_get trans err awarn timer_add timer_del cmd_add
|
our @EXPORT_OK = qw(conf_get trans err awarn timer_add timer_del cmd_add
|
||||||
cmd_del hook_add hook_del rchook_add rchook_del match_user
|
cmd_del hook_add hook_del rchook_add rchook_del match_user
|
||||||
has_priv);
|
has_priv mod_exists);
|
||||||
|
|
||||||
|
|
||||||
# Initialize a module.
|
# Initialize a module.
|
||||||
@@ -60,7 +60,7 @@ sub mod_exists
|
|||||||
{
|
{
|
||||||
my ($name) = @_;
|
my ($name) = @_;
|
||||||
|
|
||||||
return 1 if defined $MODULE{$name};
|
return 1 if defined $API::Std::MODULE{$name};
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user