#ifndef _LUA_H
#define _LUA_H
+#ifndef __USE_BSD
#define __USE_BSD
+#endif
#include <lua.h>
#include <lauxlib.h>
#include "lualocal.h"
#include "luasocket.h"
+#include "luascheduler.h"
#define luamalloc(x) nsmalloc(POOL_LUA, x)
#define luarealloc(x, y) nsrealloc(POOL_LUA, x, y)
/*** defines ************************************/
-#define LUA_BOTVERSION "1.90"
-#define LUA_CHANFIXBOT "D"
+#define LUA_BOTVERSION "1.95"
+#define LUA_CHANFIXBOT "N2"
#define LUA_OPERCHAN "#twilightzone"
#ifndef LUA_PUKECHAN
struct lua_list *prev;
lua_localnick *nicks;
lua_socket *sockets;
+ lua_scheduler *schedulers;
} lua_list;
#define LUA_STARTLOOP(l) { lua_list *ll; for(ll=lua_head;ll;ll=ll->next) { l = ll->l