Added fpfmt() to API::Std, and removed the %20's from Bin.
This commit is contained in:
1 parent
ec363be888
commit
b0fc9065f5
3 files changed
+10
-2
No files matched your search
@@ -19,7 +19,6 @@ use Class::Unload;
|
||||
use FindBin qw($Bin);
|
||||
our $Bin = $Bin; ## no critic qw(NamingConventions::Capitalization Variables::ProhibitPackageVars)
|
||||
BEGIN {
|
||||
$Bin =~ s/\s/%20/gxsm;
|
||||
unshift @INC, "$Bin/../lib";
|
||||
|
||||
open my $gitfh, '<', "$Bin/../.git/refs/heads/indev";
|
||||
|
||||
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
||||
|
||||
3.0 Indev
|
||||
===============================================================================
|
||||
* Added fpfmt() to API::Std.
|
||||
* Auto::GR renamed to $Auto::VERGITREV.
|
||||
* Bumped minimum version for API to 3.0.0a6.
|
||||
* Changed on_topic args to: full source hashref, new topic array
|
||||
|
||||
+9
-1
@@ -12,7 +12,7 @@ use base qw(Exporter);
|
||||
our (%LANGE, %MODULE, %EVENTS, %HOOKS, %CMDS);
|
||||
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
|
||||
has_priv mod_exists ratelimit_check);
|
||||
has_priv mod_exists ratelimit_check fpfmt);
|
||||
|
||||
|
||||
# Initialize a module.
|
||||
@@ -516,6 +516,14 @@ sub awarn
|
||||
return 1;
|
||||
}
|
||||
|
||||
# Formatting a file path.
|
||||
sub fpfmt {
|
||||
my ($path) = @_;
|
||||
|
||||
if ($path =~ m/\s/xsm) { return "\"$path\""; }
|
||||
else { return $path; }
|
||||
}
|
||||
|
||||
|
||||
1;
|
||||
# vim: set ai et sw=4 ts=4:
|
||||
Reference in new issue
Block a user