else
GUILE_PROGS
GUILE_FLAGS
+ GUILE_SITE_DIR
AC_DEFINE(USESCRIPTS,1,[Do we have Guile script support?])
AC_DEFINE(MULTITHREAD,1,[Is the bot Multithreaded?])
fi
],
[
+ enable_scripting=yes
GUILE_PROGS
GUILE_FLAGS
GUILE_SITE_DIR
AC_DEFINE(USESCRIPTS,1)
AC_DEFINE(MULTITHREAD,1)
])
+AM_CONDITIONAL([SCRIPTING], [test x$enable_scripting = xyes])
AC_SUBST(CXXFLAGS, "$GUILE_CFLAGS $CXXFLAGS")
AC_SUBST(LDFLAGS, "$GUILE_LDFLAGS $LDFLAGS")
+if SCRIPTING
scriptsdir = $(datadir)/bobotpp/scripts
scripts_DATA = bobot-utils.scm
guilesitebotdir = @GUILE_SITE@/bobotpp
guilesitebot_DATA = bot.scm
-EXTRA_DIST = $(scripts_DATA) $(guilesitebot_DATA)
\ No newline at end of file
+EXTRA_DIST = $(scripts_DATA) $(guilesitebot_DATA)
+endif
\ No newline at end of file
#include <map>
#include <list>
+
+#include <sys/types.h>
+#include <unistd.h>
+
#include "DCCPerson.H"
#include "DCCConnection.H"
#include "UserCommands.H"
#include "config.h"
#endif
-//#include <limits>
+#include <limits>
#include "ServerQueue.H"
#include "Utils.H"
ServerQueue::~ServerQueue()
{
- penalty = INT_MIN;
+ penalty = std::numeric_limits<int>::min ();
flush();
}
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
// 02110-1301, USA.
+#include <cstdlib>
#include <fstream>
#include <iostream>
password = "";
}
- l.push_back(new UserListItem(mask, maskChannel, atoi(level),
- atoi(prot), atoi(aop),
- atol(expiration), password));
+ l.push_back(new UserListItem(mask, maskChannel, std::atoi(level),
+ std::atoi(prot), std::atoi(aop),
+ std::atol(expiration), password));
line++;
}