mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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:
parent
969cfe8abc
commit
cbdaf7d06d
63 changed files with 2471 additions and 1912 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -10,6 +10,3 @@ enum {
|
|||
};
|
||||
|
||||
extern FORMAT_REC fecommon_irc_flood_formats[];
|
||||
#define MODULE_FORMATS fecommon_irc_flood_formats
|
||||
|
||||
#include "printformat.h"
|
||||
|
|
|
|||
3
src/fe-common/irc/flood/module.h
Normal file
3
src/fe-common/irc/flood/module.h
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#include "common.h"
|
||||
|
||||
#define MODULE_NAME "fe-common/irc/flood"
|
||||
Loading…
Add table
Add a link
Reference in a new issue