mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 00:22:17 +02:00
Added bot plugin, it also has almost-functional botnet.
Changed configure.in's functionality so that you could tell what modules you want to build in main irssi binary and it will create automatically the .c files that need to call the module_init()/deinit() functions. Fixed several minor things.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@230 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
487da41745
commit
76605ad0ae
41 changed files with 2809 additions and 246 deletions
26
src/irc/bot/bot.h
Normal file
26
src/irc/bot/bot.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef __BOT_H
|
||||
#define __BOT_H
|
||||
|
||||
typedef struct
|
||||
{
|
||||
PLUGIN_REC *plugin;
|
||||
gboolean loaded;
|
||||
|
||||
GHashTable *users;
|
||||
GSList *botnets;
|
||||
|
||||
gchar *nick;
|
||||
gint rank;
|
||||
|
||||
time_t last_write;
|
||||
}
|
||||
PLUGIN_DATA;
|
||||
|
||||
void plugin_bot_events(PLUGIN_REC *plugin);
|
||||
|
||||
#include "botnet.h"
|
||||
#include "users.h"
|
||||
|
||||
#define MODULE_NAME "bot"
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue