1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

not needed anymore.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1329 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-03 23:20:26 +00:00 committed by cras
parent 060756da9f
commit 6ae8ab5766
6 changed files with 0 additions and 140 deletions

View File

@ -1,8 +0,0 @@
*.la
*.lo
*.o
.deps
.libs
Makefile
Makefile.in
so_locations

View File

@ -1,21 +0,0 @@
moduledir = $(libdir)/irssi/modules
module_LTLIBRARIES = libfe_irc_flood.la
libfe_irc_flood_la_LDFLAGS = -avoid-version
INCLUDES = \
$(GLIB_CFLAGS) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/core/ \
-I$(top_srcdir)/src/irc/core/ \
-I$(top_srcdir)/src/fe-common/core/ \
-DHELPDIR=\""$(datadir)/irssi/help"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\"
libfe_irc_flood_la_SOURCES = \
fe-flood.c \
module-formats.c
noinst_HEADERS = \
module.h \
module-formats.h

View File

@ -1,61 +0,0 @@
/*
fe-flood.c : irssi
Copyright (C) 1999-2000 Timo Sirainen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "module.h"
#include "module-formats.h"
#include "signals.h"
#include "levels.h"
#include "irc-servers.h"
#include "ignore.h"
#include "irc/flood/autoignore.h"
#include "themes.h"
#include "printtext.h"
static void event_autoignore_new(IGNORE_REC *rec)
{
g_return_if_fail(rec != NULL);
printformat(server_find_tag(rec->servertag), NULL, MSGLEVEL_CLIENTNOTICE,
IRCTXT_AUTOIGNORE, rec->mask, rec->time);
}
static void event_autoignore_destroyed(IGNORE_REC *rec)
{
g_return_if_fail(rec != NULL);
printformat(server_find_tag(rec->servertag), NULL, MSGLEVEL_CLIENTNOTICE,
IRCTXT_AUTOUNIGNORE, rec->mask, rec->time);
}
void fe_irc_flood_init(void)
{
signal_add("autoignore new", (SIGNAL_FUNC) event_autoignore_new);
signal_add("autoignore destroyed", (SIGNAL_FUNC) event_autoignore_destroyed);
theme_register(fecommon_irc_flood_formats);
}
void fe_irc_flood_deinit(void)
{
signal_remove("autoignore new", (SIGNAL_FUNC) event_autoignore_new);
signal_remove("autoignore destroyed", (SIGNAL_FUNC) event_autoignore_destroyed);
theme_unregister();
}

View File

@ -1,35 +0,0 @@
/*
module-formats.c : irssi
Copyright (C) 2000 Timo Sirainen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "module.h"
#include "formats.h"
FORMAT_REC fecommon_irc_flood_formats[] =
{
{ MODULE_NAME, "Flood", 0 },
/* ---- */
{ NULL, "Autoignore", 0 },
{ "autoignore", "Flood detected from {nick $0}, autoignoring for {hilight $1} seconds", 2, { 0, 1 } },
{ "autounignore", "Removed autoignore from {nick $0}", 1, { 0 } },
{ NULL, NULL, 0 }
};

View File

@ -1,12 +0,0 @@
#include "formats.h"
enum {
IRCTXT_MODULE_NAME,
IRCTXT_FILL_1,
IRCTXT_AUTOIGNORE,
IRCTXT_AUTOUNIGNORE
};
extern FORMAT_REC fecommon_irc_flood_formats[];

View File

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