#include <unistd.h>
#include "../lib/sstring.h"
+#include "../core/nsmalloc.h"
#include "lualocal.h"
+#include "luasocket.h"
+
+#define luamalloc(x) nsmalloc(POOL_LUA, x)
+#define luarealloc(x, y) nsrealloc(POOL_LUA, x, y)
+#define luafree(x) nsfree(POOL_LUA, x)
/*** defines ************************************/
-#define LUA_BOTVERSION "1.80"
-#define LUA_CHANFIXBOT "Z"
+#define LUA_BOTVERSION "1.87"
+#define LUA_CHANFIXBOT "D"
#define LUA_OPERCHAN "#twilightzone"
#ifndef LUA_PUKECHAN
struct lua_list *next;
struct lua_list *prev;
lua_localnick *nicks;
+ lua_socket *sockets;
} lua_list;
#define LUA_STARTLOOP(l) { lua_list *ll; for(ll=lua_head;ll;ll=ll->next) { l = ll->l
#define lua_tolong(l, n) (long)lua_tonumber(l, n)
#define lua_islong(l, n) lua_isnumber(l, n)
#define lua_pushlong(l, n) lua_pushnumber(l, n)
+#define lua_pushnumeric(l, n) lua_pushlong(l, n)
+#define lua_tonumeric(l, n) lua_tolong(l, n)
+#define lua_isnumeric(l, n) lua_islong(l, n)
extern struct rusage r_usages;
extern struct rusage r_usagee;