]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/luabot.h
Remove test #ifs around the GL commands.
[irc/quakenet/newserv.git] / lua / luabot.h
index 8c46e74cba745a63c23e75b7155e751337e27f20..e8014782f48ef278456f46bb73bee552bd19f0d7 100644 (file)
@@ -8,13 +8,14 @@
 #include "../nick/nick.h"
 #include "../channel/channel.h"
 
-int lua_channelmessage(channel *cp, char *message, ...);
-int lua_message(nick *np, char *message, ...);
-int lua_notice(nick *np, char *message, ...);
+int lua_channelmessage(channel *cp, char *message, ...) __attribute__ ((format (printf, 2, 3)));
+int lua_message(nick *np, char *message, ...) __attribute__ ((format (printf, 2, 3)));
+int lua_notice(nick *np, char *message, ...) __attribute__ ((format (printf, 2, 3)));
 int _lua_vpcall(lua_State *l, void *function, int mode, const char *sig, ...);
 char *printallmodes(channel *cp);
 
-nick *lua_nick;
+extern nick *lua_nick;
+extern sstring *luabotnick;
 
 #define LUA_OK 0
 #define LUA_FAIL 1