#ifndef LUA_IRC_H
#define LUA_IRC_H
/**
* Defines lua wrappers for the irc_* objects
*/
#include "irc_client.h"
// XXX: remove this dep ASAP.
#include <spbot/nexus_lua.h>
/**
* Our lua wrapper for irc_chan
*/
struct lua_chan {
struct irc_chan *chan;
};
/**
* Our lua wrapper for irc_net
*/
struct lua_net {
struct irc_net *net;
};
/**
* Our lua wrapper for irc_client
*/
struct lua_client {
struct irc_client *client;
/** Any defaults set using lua_client_set_defaults */
struct irc_client_defaults defaults;
};
/**
* Initialize the various lua_irc object types for the given lua state.
*
* Call in protected mode.
*/
void lua_irc_init (struct nexus_lua *lua);
#endif