Plugin API
From IRCBotWiki
Contents |
IRCBot API Functions in BOTAPI_DEF
Version Functions
IRC Functions
int SendIRC(int netno, char * buf, size_t datalen)
Socket Functions
void ClearSockEntries(T_SOCKET * sock)
void SendRemoteReply(T_SOCKET * socket, REMOTE_HEADER * rHead, char * data)
int SendSock(T_SOCKET * sock, char * buf, size_t datalen)
Configuration Functions
DS_CONFIG_SECTION * GetConfigSection(DS_CONFIG_SECTION * parent, char * name)
long GetConfigSectionLong(DS_CONFIG_SECTION * section, char * name)
char * GetConfigSectionValue(DS_CONFIG_SECTION * section, char * name)
Sound Server Functions
void EnableRequests(bool activate)
int GetSSInfo(int ssnum, API_SS * ss)
Misc Functions
API_commands * commands (functions related to the new commands/triggers system)
API_textfunc * textfunc (pointer to a few handy text functions)
API_db * db (pointer to IRCBot DB functions)
PLUGIN_PUBLIC * GetPlugin(int plugnum)
int GetUserLevel(char * hostmask, char * pass)
char * GetUserPass(char * nick)
void ib_printf(char * fmt, ...)
bool LoadMessage(char * name, char * msgbuf, long bufSize)
void ProcText(char * text, long bufsize)
void safe_sleep_seconds(int sleepfor) DEPRECATING
void safe_sleep_milli(int sleepfor) DEPRECATING
int SendMessage(int toplug, unsigned int MsgID, void * data, long datalen)
DEPRECATED Functions That No Longer Exist In IRCBot v3
char * GetBotNick() (replaced with GetBotNick(-1))
void PushMessage(unsigned int MsgID, void * data, unsigned int datalen) (replaced by SendMessage)
void * PopMessage(unsigned int MsgID) (replaced by SendMessage)
void MessageFreeData(void * data) (replaced by SendMessage)
void safe_sleep(int sleepfor, bool inmilli) (this is still provided by the Drift Standard Libraries)
int SendSock(int netno, char * buf, long datalen) (replaced with SendIRC)
