Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
+2006-06-28 Clinton Ebadi <clinton@unknownlamer.org>
+
+ * source/Bot.C (set_log_dir): Create directory if it doesn't exist
+ (readConfig): Catch case of a line consisting of spaces and don't
+ print and error message
+
2006-02-03 Clinton Ebadi <clinton@unknownlamer.org>
* source/Interp.C (Startup): Removed loading of bobot-utils.scm
====== The News =====================================================
=====================================================================
+Version 2.2.1 (2006-06-28):
+- If the log directory does not exist the bot creates it
+- If there are lines with only whitespace on them in the config file
+ and error message is no longer printed to the log
+
Version 2.2.0 (2006-05-24):
- Scripting
+ Hooks
dnl Process this file with autoconf to produce a configure script.
AC_PRERQ(2.50)
-AC_INIT([Bobot++], [2.2.0], [clinton@unknownlamer.org], [bobotpp])
+AC_INIT([Bobot++], [2.2.1], [clinton@unknownlamer.org], [bobotpp])
AC_LANG([C++])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
#include <cstring>
#include <cstdlib>
#include <cstdio>
+#include <dirent.h>
#include <sys/time.h>
#include <sys/types.h>
+#include <sys/stat.h>
#include <unistd.h>
#include "Bot.H"
st2.next_token()));
}
}
+ else if (command == "")
+ {
+ // do nothing
+ }
else {
logLine(String("Syntax error in file ") + configFileName +
", line " + String((long)line));
Bot::set_log_dir (String dir)
{
logs_dir = dir;
+
+ DIR *temp = opendir (logs_dir);
+
+ if (!temp)
+ {
+ mkdir (logs_dir, S_IRWXU);
+ }
+ else
+ {
+ closedir (temp);
+ }
}