X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/f24153fcb31f04d8505237ac5890ea30f14e2c38..78546f2b0f59b5c8fede1ce5535972716eb17041:/lua/lua.h?ds=sidebyside diff --git a/lua/lua.h b/lua/lua.h index 96cfe037..1fd5b449 100644 --- a/lua/lua.h +++ b/lua/lua.h @@ -5,7 +5,9 @@ #ifndef _LUA_H #define _LUA_H +#ifndef __USE_BSD #define __USE_BSD +#endif #include #include @@ -21,6 +23,7 @@ #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) @@ -28,8 +31,8 @@ /*** 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 @@ -62,6 +65,7 @@ typedef struct lua_list { 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