Lots of changes again. Biggest ones:

- window's text buffer should work better
- themes are almost working, you can change the text formats with /format
- automatically try to rejoin the channel after 5 minutes if the join there
failed because it was "temporarily unavailable" (netsplits)
- generally cleaning code..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@216 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-05-15 08:25:45 +00:00 committed by cras
commit cbdaf7d06d
63 changed files with 2471 additions and 1912 deletions

View file

@ -13,5 +13,6 @@ libfe_common_irc_flood_la_SOURCES = \
fe-flood.c \
module-formats.c
noinst_headers = \
noinst_HEADERS = \
module.h \
module-formats.h

View file

@ -26,6 +26,8 @@
#include "irc-server.h"
#include "irc/flood/autoignore.h"
#include "themes.h"
static void event_autoignore_new(IRC_SERVER_REC *server, AUTOIGNORE_REC *ignore)
{
g_return_if_fail(ignore != NULL);
@ -45,10 +47,14 @@ void fe_flood_init(void)
{
signal_add("autoignore new", (SIGNAL_FUNC) event_autoignore_new);
signal_add("autoignore remove", (SIGNAL_FUNC) event_autoignore_remove);
theme_register(fecommon_irc_flood_formats);
}
void fe_flood_deinit(void)
{
theme_unregister();
signal_remove("autoignore new", (SIGNAL_FUNC) event_autoignore_new);
signal_remove("autoignore remove", (SIGNAL_FUNC) event_autoignore_remove);
}

View file

@ -23,11 +23,13 @@
FORMAT_REC fecommon_irc_flood_formats[] =
{
{ MODULE_NAME, "Flood", 0 },
{ MODULE_NAME, "Flood", 0 },
/* ---- */
{ NULL, "Autoignore", 0 },
/* ---- */
{ NULL, "Autoignore", 0 },
{ "autoignore", "Flood detected from %_$0%_, autoignoring for %_$1%_ minutes", 2, { 0, 1 } },
{ "autounignore", "Unignoring %_$0", 1, { 0 } }
{ "autoignore", "Flood detected from %_$0%_, autoignoring for %_$1%_ minutes", 2, { 0, 1 } },
{ "autounignore", "Unignoring %_$0", 1, { 0 } },
{ NULL, NULL, 0 }
};

View file

@ -10,6 +10,3 @@ enum {
};
extern FORMAT_REC fecommon_irc_flood_formats[];
#define MODULE_FORMATS fecommon_irc_flood_formats
#include "printformat.h"

View file

@ -0,0 +1,3 @@
#include "common.h"
#define MODULE_NAME "fe-common/irc/flood"