git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@37
c11ca15a-4712-0410-83d8-
924469b57eb5
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();