From: b <b@7dec801f-c475-4e67-ba99-809552d69c55>
Date: Sat, 23 Jan 2016 11:53:10 +0000 (+0000)
Subject: fixed autogenerated config bug: > instead of >>
X-Git-Url: http://bicyclesonthemoon.info/git-projects/?a=commitdiff_plain;ds=inline;p=yplom%2Ffacebug1

fixed autogenerated config bug: > instead of >>



git-svn-id: svn://botcastle1b/yplom/facebug1@17 7dec801f-c475-4e67-ba99-809552d69c55
---

diff --git a/bot.1.pl b/bot.1.pl
index 0223127..ba59f29 100644
--- a/bot.1.pl
+++ b/bot.1.pl
@@ -1755,6 +1755,14 @@ sub facebooktime {
 			$hour += 12;
 		}
 	}
+	elsif ($timetext =~ /^ *today +at +([0-9]{1,2}):([0-9]{2})([ap]m) */) {
+		$hour=int($1);
+		$minute=int($2);
+		$ampm=$3;
+		if($ampm eq 'pm') {
+			$hour += 12;
+		}
+	}
 	else {
 		# print "FAIL 1 -".urlencode($timetext)."-\n";
 		return $timetext;
diff --git a/configure.pl b/configure.pl
index c60e97f..6282246 100644
--- a/configure.pl
+++ b/configure.pl
@@ -99,7 +99,7 @@ $wwwpath =~ s/\/$//;
 $def{'CGI_ALIAS'}  = 'ScriptAlias '.$set{'interface_path'}.'/view '.$set{'bin_path'}.'interface';
 $def{'PATH_ALIAS'} = 'Alias       '.$set{'interface_path'}.'      '.$wwwpath; 
 
-$def{'BOT_CRONTAB'}       = $set{'bot_crontab'}.' '.$set{'bin_path'}.'bot'.(($set{'bot_args'} ne '')?(' '.$set{'bot_args'}):'').' >'.$set{'log_path'}.'bot.log';
+$def{'BOT_CRONTAB'}       = $set{'bot_crontab'}.' '.$set{'bin_path'}.'bot'.(($set{'bot_args'} ne '')?(' '.$set{'bot_args'}):'').' >> '.$set{'log_path'}.'bot.log';
 $def{'RM_ACCESS_CRONTAB'} = $set{'rm_access_crontab'}.' '.$set{'bin_path'}.'rmaccess';
 $def{'OLDLOGS_CRONTAB'}   = $set{'oldlogs_crontab'}.' '.$set{'proxy_bin_path'}.'oldlogs '.$set{'log_path'}.' '.$set{'log_size_limit'}.' '.$set{'logs_total'}.' '.$set{'logs_uncompressed'};