sub help {
my $topic = $_[0];
- my $file = $bot_misc_dir."/blootbotbot.help";
+ my $file = $bot_misc_dir."/blootbot.help";
my %help = ();
if (!open(FILE, $file)) {
return '';
}
+sub getPath {
+ my ($pathnfile) = @_;
+
+ ### TODO: gotta hate an if statement.
+ if (/(.*)\/(.*?)$/) {
+ return $1;
+ } else {
+ return ".";
+ }
+}
+
sub gettimeofday {
if ($no_syscall) { # fallback.
return time();